|GridData width hint hides field [message #1007608]
||Wed, 06 February 2013 17:44
| Joseph Carroll
Registered: May 2012
Location: Milwaukee, WI
I am creating a composite for a column of controls. I wanted to specify a width hint for each column so that they have a uniform look and feel. However, any time I use a width hint other than SWT.DEFAULT, the last control in the column is not shown. (See attached)|
Using the code below, it will crop the last control. However, if I changed the code to
the last control shows without issue.
// create the left most composite
sharedColumn1 = new Composite(theParent, SWT.None);
GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.TOP).minSize(300, 0).hint(300, SWT.DEFAULT).applyTo(sharedColumn1);
Any one have a clue why this might be happening?
I've tried packing, laying out, and anything else that I thought might help, but nothing has worked so far.
Powered by FUDForum
. Page generated in 0.19306 seconds