Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 488489 - system selection dropdown is garbled on Linux
Summary: system selection dropdown is garbled on Linux
Status: CLOSED DUPLICATE of bug 500703
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4.2   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-25 13:08 EST by Ilya Mykhaylov CLA
Modified: 2018-05-15 15:57 EDT (History)
2 users (show)

See Also:


Attachments
garbled combo (4.32 MB, image/jpeg)
2016-02-25 13:08 EST, Ilya Mykhaylov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Mykhaylov CLA 2016-02-25 13:08:44 EST
Created attachment 259926 [details]
garbled combo

In case you would have data binding for the combo and you have initialized it with a small amount of data (so combo dropdown size calculated somehow). Then in runtime the model data is changed to the larger size (so that you have to scroll)
as a result you have kind of overlapping view of the dropdown... see attached image. As a workaround we have to initialize combo with the max possible amount of data for that drop down and then doing re-init with the real data. 

We have tested with 5 and 5.1 versions.
With 3.x version we have gap problem (space on the top of popup with first open).

Please note that in case Combo is editable (not created with SWT.READ_ONLY) - drop down is ok.
CCombo is working with READ_OLY but it have look that is not suit for us.


The code as follows:
omboMeasurementSystem = new CCombo(this, SWT.READ_ONLY);
        comboMeasurementSystem.setLayoutData(comboGridData);

        controlDecorationMeasurementSystem = new ControlDecoration(comboMeasurementSystem, SWT.RIGHT | SWT.TOP);
        controlDecorationMeasurementSystem.setDescriptionText("Please Select a Measurement System");


IObservableList itemsComboMeasurementSystemObserveWidget = WidgetProperties.items().observe(
                comboMeasurementSystem);
        IObservableList measurementSystemListGuiModelObserveList = BeanProperties.list("measurementSystemList")
                .observe(selectionListGuiModel);
        bindingContext.bindList(itemsComboMeasurementSystemObserveWidget, measurementSystemListGuiModelObserveList,
                null, null);
Comment 1 Ilya Mykhaylov CLA 2016-02-25 13:10:29 EST
eclipse plugin with impact org.eclipse.swt.gtk.linux.x86_64
Comment 2 Eric Williams CLA 2018-05-15 15:57:44 EDT
I believe this is a dup of 500703. Please comment if you continue to experience the issue on 4.8 with GTK3.22.

*** This bug has been marked as a duplicate of bug 500703 ***