Friendly Jira Robot created ERT-693:
---------------------------------------
Summary: [GTK3] Combo pulldown text cutoff on Linux [EBZ#542867]
Key: ERT-693
URL:
https://issues.jboss.org/browse/ERT-693
Project: Eclipse Release Train
Issue Type: Task
Components: Platform
Reporter: Friendly Jira Robot
Created attachment 276946
Wizard screenshot on Eclipse 4.10
Swithcing from Eclipse 4.9 platform to Eclipse 4.10. The size computations for various of
our 'pull down' style text combo widgets are now wrong. They result in text being
cut-off and in some cases totally unreadable (if the text is just one character, cutting
of any part of the text will do that).
One of my coleagues tried the wizard on Mac and it looks fine there. So this looks to be a
regression in Linux SWT only.
I'm attaching two screenshots, one from before Eclipse 4.9 and one from Eclipse 4.10.
This doesn't appear to affect all combo boxes. Some boxes are drawn correctly. I think
it has something to do with the fact that the affected boxes are not on screen when the
wizard is initially shown. These widgets are added later on (dynamically populated from
data read from a web service) and so there are some calls being made to
'reflow/relayout' the page after the widgets have been added or their contents
changed somehow.
In fact with the wizard from which these screenshots here are taken, the widgets briefly
appear on screen 'correctly' (a bit hard to be sure, as they only appear very
briefly) and then they get resized to a smaller size cutting of the contents.
When sized correctly (E 4.9) the widget's width takes into account all of these:
1) text in the widget currently visible on screen
2) the width of the little pull-down arrow.
3) text in the pull-down menu (i.e. the other items that can be chosen by the user could
be wider, and the widget acomodates enough space to show the largest of them).
When sized 'incorrectly' (E 4.10) what it looks like to me is that instead only
the currently visible text is taken into account. It does not account for the other items
in the list, nor the width of the pull-down icon.
I'll see if I can come up with some code snippet to reproduce this problem, and, if
able to, will attach it later.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)