Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic HOW TO RESIZE TABLENODE (Read 2669 times)
Green
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 30th, 2011
HOW TO RESIZE TABLENODE
Jul 5th, 2011 at 7:07am
Print Post  
I hava create tableNode with image and text, and image cell span all text rows.I want text wrap ,so I
do tablenode.ResizeToFitText(true,false),but the image disappear,how can I do?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: HOW TO RESIZE TABLENODE
Reply #1 - Jul 5th, 2011 at 7:38am
Print Post  
ResizeToFitText considers only labels and not images, so if you have a column without any text in cells, it will shrink in size. You might try setting keepCellWidth to only resize cells height, or restore the image column width after calling ResizeToFitText by setting table.Columns[...].Width.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Green
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 30th, 2011
Re: HOW TO RESIZE TABLENODE
Reply #2 - Jul 5th, 2011 at 7:52am
Print Post  
I do what you said ,the text Show incomplete.

tablenode.ResizeToFitText(true,true);
tablenode.Columns[0].Width = 25;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: HOW TO RESIZE TABLENODE
Reply #3 - Jul 5th, 2011 at 9:28am
Print Post  
Try adding 25 to table.Bounds.Width after setting the column's width:

table.Resize(table.Bounds.Width + 25, table.Bounds.Height);
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint