Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Line height with StyledText(The line height spontaneously changes with StyledText)
Line height with StyledText [message #757599] Sun, 20 November 2011 08:13 Go to next message
Thomas Christensen is currently offline Thomas ChristensenFriend
Messages: 3
Registered: November 2011
Junior Member
I am using swt 3.7.1 (x86_64) on Ubuntu Oneiric

I am creating a StyledText. Fills it with about 30 lines of text enough to make a need for scrolling.

Now: If I scroll down to the end of the text, at one point the line height will change from 17 to 21, which is confusing and not too pretty.

The same thing happens if I resize the Shell (and thereby the StyledText widget).

This happens only with Ubuntu Mono-12, not with Monospace-10.

And I cannot reproduce it with the Text widget instead of StyledText widget.

Can anyone shed some light on this?

Sincerly
Thomas
Re: Line height with StyledText [message #757600 is a reply to message #757599] Sun, 20 November 2011 08:23 Go to previous messageGo to next message
Thomas Christensen is currently offline Thomas ChristensenFriend
Messages: 3
Registered: November 2011
Junior Member
Actually it happens with Monospace-10 too, but to a lesser extend so I didn't notice.
Re: Line height with StyledText [message #757601 is a reply to message #757600] Sun, 20 November 2011 08:29 Go to previous message
Thomas Christensen is currently offline Thomas ChristensenFriend
Messages: 3
Registered: November 2011
Junior Member
Ok, solved. SWT.WRAP attribute on StyledText creation makes the problem go away.
Previous Topic:TreeViewer with ILazyTreeContentProvider
Next Topic:2D grahics SWT
Goto Forum:
  


Current Time: Fri Apr 19 22:53:58 GMT 2024

Powered by FUDForum. Page generated in 0.02853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top