Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 380155 - RAP/SWT: Layout issue on RadioButtonGroup
Summary: RAP/SWT: Layout issue on RadioButtonGroup
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 11:02 EDT by Ken Lee CLA
Modified: 2021-08-19 11:23 EDT (History)
2 users (show)

See Also:
claudio.guglielmo: juno+


Attachments
Fix for RadioButtonGroup layout issue (2.23 KB, patch)
2012-05-21 11:17 EDT, Ken Lee CLA
claudio.guglielmo: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Lee CLA 2012-05-21 11:02:15 EDT
Build Identifier: 

When using a concrete instance of AbstractRadioButtonGroup that contains 2 columns with radio buttons in the first column and smart fields in the second column, the smart fields do not fit into the dialog and are therefore "cut off".

Smart fields should be resized with respect to the the dialog.


Reproducible: Always
Comment 1 Ken Lee CLA 2012-05-21 11:17:08 EDT
Created attachment 215973 [details]
Fix for RadioButtonGroup layout issue

The RadioButtonGroupLayout uses the preferred size of a smart field such that the smart field does not fit into the dialog, when the dialog is not configured to be used the UI width.

As in Swing, RadioButtonGroupLayout should use the minimum size of the UI field.

The patch submitted contains a new method in RwtLayoutUtility to calculate the minimum size of a Control. This method is called in RadioButtonGroupLayout during layout validation.
Comment 2 Claudio Guglielmo CLA 2012-05-22 04:03:07 EDT
Thank you Ken for the patch! I applied it for 3.8.1 and fixed the same bug in the swt ui as well.
Comment 3 Matthias Zimmermann CLA 2012-11-13 02:41:01 EST
shipped with scout juno sr1