Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Problem with TableNode and ResizeToFitText (Read 8773 times)
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Problem with TableNode and ResizeToFitText
Oct 16th, 2008 at 7:29pm
Print Post  
Hi,

I am having the same issue that "Chris--IT" is having with the Flowchart.NET control (posted today, 10.16.2008 with title "Problem with TableNode and ResizeToFitText").

To explain, I call ResizeToFixText after I have added all of my rows to the TableNode, yet it doesn't size them appropriately.

The only difference with my issue is that I am using the WpfDiagram 1.0 Trial version.  I have tried the 2.0 Trial version and can get the same error that I do with 1.0, so if it is a bug, it hasn't been fixed in this version.

I do have a workaround, so this issue is currently not mission critical.  Basically all I do is:

1.  Create object
2.  Create a List<int> variable.  For each row I add to the TableNode, I add the length of the text to this list
3.  When all items have been added to the TableNode, I call ResizeToFitText.
4.  I then have to take the Max() of the list items and multiply that by a constant variable to resize the cells/TableNode myself.

Please let me know if this is a bug/what I am doing wrong - thank you!

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with TableNode and ResizeToFitText
Reply #1 - Oct 17th, 2008 at 9:05am
Print Post  
Hi,

Have you added the table to the diagram before calling ResizeToFit?

Stoyan

  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Problem with TableNode and ResizeToFitText
Reply #2 - Oct 17th, 2008 at 1:43pm
Print Post  
Hi Stoyan,

Thank you for replying.  The table has NOT been added to the diagram prior to calling ResizeToFit.

Do you think that could correct the issue?

Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with TableNode and ResizeToFitText
Reply #3 - Oct 17th, 2008 at 1:50pm
Print Post  
It's possible, because ResizeToFitText might depend on the Diagram.MeasureUnit value.
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Problem with TableNode and ResizeToFitText
Reply #4 - Oct 17th, 2008 at 1:53pm
Print Post  
Ok, I'll modify the solution to add the table to the diagram prior to calling ResizeToFitText and let you know of the outcome.

Thanks again for your prompt reply!

Neal
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Problem with TableNode and ResizeToFitText
Reply #5 - Oct 17th, 2008 at 7:51pm
Print Post  
Hi Stoyan,

I created a node object, added it to the Diagram and then called ResizeToFixText - it provided me with the same result.

Do you have any other suggestions?

Thanks,

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with TableNode and ResizeToFitText
Reply #6 - Oct 18th, 2008 at 1:07pm
Print Post  
Hi Neal,

Please save to an xml file a diagram with a table showing the problem and email it to support@mindfusion.eu.

Thank you,
Stoyan
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Problem with TableNode and ResizeToFitText
Reply #7 - Oct 20th, 2008 at 3:43pm
Print Post  
Hi Stoyan,

I have send the request Xml file along with a screenshot of the behavior.

I am also noticing another strange behavior with resizing the shapes manually.  If I were to click on the shape to resize the height only and then begin resizing it, the shape resizes fine, unless I move the mouse past the mid-way point in the shape.  Once I do that, the shape collapses width-wise (height is still being resized appropriately).  If, while holding the mouse click down, I cross BACK over the mid-way point, the shape returns to its normal width.  Is this normal behavior?

Thanks,

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with TableNode and ResizeToFitText
Reply #8 - Oct 21st, 2008 at 10:21am
Print Post  
We have received the files and will test this shortly.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with TableNode and ResizeToFitText
Reply #9 - Oct 21st, 2008 at 3:08pm
Print Post  
Hi,

We could not load the file because it contains nodes from a custom type, and could not see any TableNodes in there anyway, e.g. there are no <caption>, <rows>, etc. elements. So, were you referring to the TableNode.ResizeToFitText or ShapeNode.ResizeToFitText?

Regarding resizing nodes with the mouse, does that happen with version 2.0?

Stoyan
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Problem with TableNode and ResizeToFitText
Reply #10 - Oct 31st, 2008 at 1:12pm
Print Post  
Hi Stoyan,

I'm sorry to have left this thread open for 10 days with no response - I have been on other priorities.

I will install WpfDiagram 2.0 and let you know of the results.

Thanks!

Neal
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Problem with TableNode and ResizeToFitText
Reply #11 - Nov 19th, 2008 at 6:23pm
Print Post  
Hi,

Initial testing appears that v2.0 did not solve this issue.  I will continue to test - please keep this thread open.

Thanks!

Neal
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint