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

Bug 354351

Summary: Shells that have a menu are incorrectly sized on Ubuntu 11
Product: [Eclipse Project] Platform Reporter: Juris Olekss <jurisolekss>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, remy.suen
Version: 4.2Keywords: triaged
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Ubuntu 11.04 (incorrect sizing)
none
Ubuntu 10.10 (correct sizing)
none
Sample code none

Description Juris Olekss CLA 2011-08-10 05:51:29 EDT
Build Identifier: 20110301-1815

If a shell with a grid layout has a menu, the window is incorrectly sized on Ubuntu 11.04. The bottom part (which corresponds to the height of the menu) of the shell is cut off (see attachment). The problem disappears if the menu is removed from code.
OS: Ubuntu 11.04 with the classic view (not Unity)
GNOME: 2.32.1
SWT used: Linux (x86/GTK 2) 3.735

This does not happen on Windows or Ubuntu 10.10 (see attached screenshot).

Reproducible: Always

Steps to Reproduce:
1. Create a simple shell with a grid layout and a menu (see attachment for test code used).
2. Run the code.
Comment 1 Juris Olekss CLA 2011-08-10 05:53:17 EDT
Created attachment 201223 [details]
Ubuntu 11.04 (incorrect sizing)

Added screenshot that shows how a shell is incorrectly sized on Ubuntu 11.04.
Comment 2 Juris Olekss CLA 2011-08-10 05:54:28 EDT
Created attachment 201224 [details]
Ubuntu 10.10 (correct sizing)

Added a screenshot that shows how the shell is supposed to look (Ubuntu 10.10 used)
Comment 3 Juris Olekss CLA 2011-08-10 05:55:50 EDT
Created attachment 201225 [details]
Sample code

Added a sample code that can be used to reproduce this bug.
Comment 4 Eric Williams CLA 2018-04-09 14:48:28 EDT
I can't reproduce this issue. The GTK and Ubuntu versions are quite old, please open a new bug if the issue pops up again.