Community
Participate
Working Groups
Please launch the attached snippet on Linux. It should show a right-aligned text and a vertical scrollbar. If there is an autohiding scrollbar, it can be shown by moving the mouse over the control. When moving it away, it will hide. Problem is, that the scrollbar is shown in front of the text, when hiding an empty area remains without redrawing.
Created attachment 286622 [details] Snippet to reproduce
Created attachment 286623 [details] Screenshot initially
Created attachment 286624 [details] Screenshot after the scrollbar automatically hid
Created attachment 286625 [details] Screenshot with scrollbar
Reproduced the bug on my environment using the provided snippet, I will take a look at this. From a quick glance at the snippet, causing a redraw by means of resizing window brings back the string.
The paint event that would redraw the part of the string that's cutoff is being discarded. From this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=546248 If I comment out the 'return 0' which discards Paint events, the snippet works as intended. Of course, this would undo the work the bug was trying to achieve so I'll have to look into this more.