Project: Eclipse_Platform_UI
Bug 146265 [FieldAssist] Problems with vertical filled control
Reported: 2006-06-09 11:15:38 | Status: verified fixed

When using text with fill vertical, the text of the decorated field will not fill all the space. DecoratedField decoNormal = new DecoratedField(shell, SWT.BORDER, new TextControlCreator()); FieldDecoration fieldDeco = FieldDecorationRegistry.getDefault(). getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL); decoNormal.addFieldDecoration(fieldDeco, SWT.TOP | SWT.LEFT, false); decoNormal.getLayoutControl().setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true) ); If i do this trick it will work but it is not a good practice i think : FormData fieldData = (FormData)decoVerticalFilled.getControl().getLayoutData(); fieldData.bottom = new FormAttachment(100, 0); decoVerticalFilled.getControl().setLayoutData(fieldData); Regards

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java