GridData width hint hides field [message #1007608] |
Wed, 06 February 2013 17:44 |
|
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 .hint(SWT.DEFAULT, SWT.DEFAULT) the last control shows without issue.
// create the left most composite
sharedColumn1 = new Composite(theParent, SWT.None);
GridLayoutFactory.swtDefaults().numColumns(4).margins(0, 0).applyTo(sharedColumn1);
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.
Thanks,
JD
|
|
|
Powered by
FUDForum. Page generated in 0.02706 seconds