Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to refresh tableNode after create? (Read 1628 times)
Brarord
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Dec 30th, 2019
How to refresh tableNode after create?
Jan 3rd, 2020 at 7:36am
Print Post  
Hi,
is there any way to refresh table after create? If you wanna ask why i want to do this, then this is the reason:

1. This is my tableNode immediately after creation


I didn't touch its position x y. As you can see the scroll bar hasn't refreshed its position yet.
Now, if I tried to move the table by even a millimeter, then immediately the position of the scroll bar will be updated and there will be no problem with that anymore.

2.



3.



This problem came after i change caption height for my tableNodes with this method:
table.setCaptionHeight(7.5);


Is there any way to fix this? Maybe like i said before some refresh method which is used by this "positioning algorithm".



Regards
poor student  Undecided
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: How to refresh tableNode after create?
Reply #1 - Jan 3rd, 2020 at 10:48am
Print Post  
Hi,

Try calling table.onUpdateBounds() after setCaptionHeight().

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Brarord
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Dec 30th, 2019
Re: How to refresh tableNode after create?
Reply #2 - Jan 3rd, 2020 at 8:09pm
Print Post  
I tried that ways:

1. tableNode.onUpdateBounds(true);
2. tableNode.onUpdateBounds();
The method has no effect.
I did some research about this, and i find this:
https://mindfusion.org/onlinehelp/jdiagram/M_com_mindfusion_diagramming_FreeForm...

Are you sure I can use this method when i am using TableNode Class, it seems it is in diffrent class? I am not sure.
I did not find this method in TableNode documentation, but i find it with debugger. This method is in "__proto__":



Regards,
poor student  Undecided
  
Back to top
 
IP Logged
 
Brarord
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Dec 30th, 2019
Re: How to refresh tableNode after create?
Reply #3 - Jan 3rd, 2020 at 11:07pm
Print Post  
Okay i already fix that with that method:
tableNode.scroller.updateLocation();


Regards,
poor student Undecided
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint