Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 512716

Summary: Toolbar: item text has influence on other item's width
Product: [Eclipse Project] Platform Reporter: Thomas Singer <eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: akurtakov, ericwill, kohenkatz
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Code sample
none
Screenshot with "Long" text
none
Screenshot with "Longer" text
none
Code sample none

Description Thomas Singer CLA 2017-02-24 13:27:23 EST
Please launch the attached sample (I've tried with stock Ubuntu 16.04 LTS). There is an odd behavior that if the third tool item has a shorter text, the first tool item will get larger than if the third tool item has a "longer" text. Try it with LONGER_ITEM set to true and false.
Comment 1 Thomas Singer CLA 2017-02-24 13:28:10 EST
Created attachment 266995 [details]
Code sample
Comment 2 Thomas Singer CLA 2017-02-24 13:28:39 EST
Created attachment 266996 [details]
Screenshot with "Long" text
Comment 3 Thomas Singer CLA 2017-02-24 13:29:01 EST
Created attachment 266997 [details]
Screenshot with "Longer" text
Comment 4 Thomas Singer CLA 2017-02-24 13:31:11 EST
See attached screenshots. Note, that for the "Longer" text, the toolbar height seems to increase significantly. I have tried with the environment variable SWT_GTK3 set to 0.
Comment 5 Alexander Kurtakov CLA 2017-02-24 15:32:41 EST
(In reply to Thomas Singer from comment #4)
> See attached screenshots. Note, that for the "Longer" text, the toolbar
> height seems to increase significantly. I have tried with the environment
> variable SWT_GTK3 set to 0.

So you see this with SWT_GTK3=0 only?
Comment 6 Thomas Singer CLA 2017-02-25 00:49:01 EST
I've tried again with SWT_GTK=1 and get the same behavior.
Comment 7 Thomas Singer CLA 2017-03-05 08:23:39 EST
Created attachment 267108 [details]
Code sample
Comment 8 Thomas Singer CLA 2017-05-19 02:51:37 EDT
This bug became unimportant for us, because we implemented a completely owner-draw toolbar.
Comment 9 Eric Williams CLA 2018-05-07 10:52:57 EDT
I can still reproduce this on SWT master as of today, with GTK3.22 and Fedora 28.
Comment 10 Thomas Singer CLA 2018-07-02 04:55:17 EDT
(In reply to Eric Williams from comment #9)
> I can still reproduce this on SWT master as of today, with GTK3.22 and
> Fedora 28.

Yes, this bug still is reproducible on Fedora 28 with Gnome 3.28. BTW, is this a duplicate of bug 395296?
Comment 11 Eric Williams CLA 2018-07-02 14:09:51 EDT
(In reply to Thomas Singer from comment #10)
> (In reply to Eric Williams from comment #9)
> > I can still reproduce this on SWT master as of today, with GTK3.22 and
> > Fedora 28.
> 
> Yes, this bug still is reproducible on Fedora 28 with Gnome 3.28. BTW, is
> this a duplicate of bug 395296?

Looks like it.

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