Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354351 - Shells that have a menu are incorrectly sized on Ubuntu 11
Summary: Shells that have a menu are incorrectly sized on Ubuntu 11
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: Other Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-08-10 05:51 EDT by Juris Olekss CLA
Modified: 2018-04-09 14:48 EDT (History)
2 users (show)

See Also:


Attachments
Ubuntu 11.04 (incorrect sizing) (5.07 KB, image/png)
2011-08-10 05:53 EDT, Juris Olekss CLA
no flags Details
Ubuntu 10.10 (correct sizing) (9.95 KB, image/png)
2011-08-10 05:54 EDT, Juris Olekss CLA
no flags Details
Sample code (1.64 KB, text/plain)
2011-08-10 05:55 EDT, Juris Olekss CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.