Community
Participate
Working Groups
Created attachment 286617 [details] SWT Text widget layout problems There seems to be a layout problem when setting hint width to SWT.DEFAULT in combination with grab=true which e.g. for Text widgets when the text value to be displayed is too long to fit into the control. If the control that hosts the Text widget has a horizontal scrollbar, this will cause the Text widget to grab as much space as needed to entirely display the text value - which can be very, very long. (see screenshot) The only workaround we found is to set hint width to "0". Is there a way to still use SWT.DEFAULT or is this a bug in SWT? Thank you in advance! Duc