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 03:13 Go to next message
Thomas Christensen is currently offline Thomas Christensen
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 03:23 Go to previous messageGo to next message
Thomas Christensen is currently offline Thomas Christensen
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 03:29 Go to previous message
Thomas Christensen is currently offline Thomas Christensen
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: Tue Jul 29 21:15:22 EDT 2014

Powered by FUDForum. Page generated in 0.01971 seconds