Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic The text of shape will be cut off on some setting (Read 2322 times)
geanyee
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Feb 12th, 2010
The text of shape will be cut off on some setting
Jun 22nd, 2011 at 9:14am
Print Post  
Hi,

I encountered a problem when using the diagram component on the winform.

If we set the text like "Mijangos Natalia" to one shape, and set the textformat as "Center|Far", the character of "j"  and "g" will be cut off part of bottom.

Please see the attached picture.



Is there anybody can help me to figure out the problem? Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: The text of shape will be cut off on some sett
Reply #1 - Jun 22nd, 2011 at 10:46am
Print Post  
Hi,

I think text is aligned relatively to the font's baseline in this case, and since by default there's no margin, the descenders might get clipped. Try setting TextPadding.Bottom = 1 to add some empty space between the text and bottom border.

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


I love YaBB 1G - SP1!

Posts: 9
Joined: Feb 12th, 2010
Re: The text of shape will be cut off on some sett
Reply #2 - Jun 23rd, 2011 at 3:59am
Print Post  
Hi, thanks for your reply.

But I'm not sure how to set the TextPadding property, I did not find this property on DiagramItem or Diagram, could you please figure it out?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: The text of shape will be cut off on some sett
Reply #3 - Jun 23rd, 2011 at 4:14am
Print Post  
What version of the control are you using? From the release history it seems TextPadding was added in version 5.4.
  
Back to top
 
IP Logged
 
geanyee
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Feb 12th, 2010
Re: The text of shape will be cut off on some sett
Reply #4 - Jun 23rd, 2011 at 5:17am
Print Post  
I'm using version 5.3.5, then we cannot find the property for sure.

I will update the version later, thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint