Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ResizeToFitText (Read 3441 times)
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
ResizeToFitText
Jul 5th, 2011 at 10:19pm
Print Post  
Hi Stoyo,

Can you please confirm if this is my fault, a missing feature, or by design

1. ResizeToFitText doesnt take into account the OffsetHeaderRows extra width

2. ResizeToFitText doesnt take into account the collapsed state of HeaderRows

Thank you

EDIT:
3. With two sections defined, the second section hides the sign (+) when collapsed, but the expanding works when clicking in the sign area. In the first Header (row 0) works fine.
« Last Edit: Jul 6th, 2011 at 12:27am by Carlos_Rocha »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ResizeToFitText
Reply #1 - Jul 6th, 2011 at 8:09am
Print Post  
It doesn't seem to consider them from what I can see in our code, but just sets the cell dimensions and sets their sum as the table's size.
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: ResizeToFitText
Reply #2 - Jul 6th, 2011 at 12:48pm
Print Post  
1. No solution, except the ugly hack of trying to guess the extra column width.

2. Solved by storing the Expanded state in CellVariantTag during expand/collapse events.

3. No way to solve it. Seems a litle bug

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ResizeToFitText
Reply #3 - Jul 6th, 2011 at 2:36pm
Print Post  
1. The offset is 12 pixels.
2. You can get the state through the RowExpanded indexed property.
3. Yes, the + is drawn only if the entire row height fits in the table; even one pixel off will hide it. It should appear if you add a pixel or two to the table height.
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: ResizeToFitText
Reply #4 - Jul 6th, 2011 at 3:15pm
Print Post  
1. Perfect
2. Perfect
3. Perfect. 1 pixel is enough
Stoyo: Perfect  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint