Bug 1475503

Summary: [RFE] Eclipse Window does not enforce a reasonable minimum size
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: eclipseAssignee: Lev Ufimtsev <lufimtse>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akurtako, andjrobins, eclipse-sig, jerboaa, krzysztof.daniel, mat.booth, rgrunber
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-18 13:48:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Stadelmann 2017-07-26 19:35:36 UTC
Description of problem:
The eclipse window can be resized to an unusable small size

Version-Release number of selected component (if applicable):
eclipse-swt-4.7.0-2.fc26.x86_64

How reproducible:
always

Steps to Reproduce:
1. open eclipse
2. resize window to be as small as possible

Actual results:
Window only has decorations and menu bar, not even a toolbar or anything else.

Expected results:
Always show toolbar, statusbar, and all the views

Additional info:
This issue might be specific to wayland or the Gtk+ 3 build.

Comment 1 Christian Stadelmann 2017-07-26 19:44:52 UTC
This issue is not specific to wayland and also affects other windows and dialogs, e.g. the preferences dialog or the file properties dialog.

Comment 2 Mat Booth 2017-07-27 09:19:48 UTC
Christian,

This does not seem specific to GTK3 either. With GTK2 you can also make the Eclipse window very small such that you can only see the decorations, with no menu bar even. To me this feels like an RFE (it's probably working as designed, and you can just make the dialog bigger again :-)

Leo,

What do you think of this as a possible enhancement? I notice that you cannot shrink the native GTK dialogs (e.g. file open dialog) below a certain size, so it might be nice if the SWT dialogs had the same behaviour.

Comment 3 Christian Stadelmann 2017-07-27 10:33:36 UTC
(In reply to Mat Booth from comment #2)
> Christian,
> 
> This does not seem specific to GTK3 either. With GTK2 you can also make the
> Eclipse window very small such that you can only see the decorations, with
> no menu bar even. To me this feels like an RFE (it's probably working as
> designed, and you can just make the dialog bigger again :-)

Thanks for this explanation. If SWT is not setting minimum/preferred sizes for its Gtk widgets, then this issue might be covered by https://bugs.eclipse.org/bugs/show_bug.cgi?id=486068 already.

Comment 4 Lev Ufimtsev 2017-07-31 16:12:34 UTC
Thank you for your bug report.

I like the idea in principle :-), but current SWT api does not dictate minimum size of a control. As such imposing one would break api and some applications that rely on manual widget sizing.

There are some cases where you want smaller than minimum sizes. For example when I make presentations on a low-resolution projector, I sometimes need to make eclipse very very small, smaller than would be comfortable to use. But in such situations I have no choice as I'm restricted by projector resolution. Or sometimes I need to demonstrate a feature and size of windows is irrelevant. 

It's true that a super-tiny eclipse is not very usable, but most applications can be shrunk down to a non-usable size. It's hard to determine a minimum size that would work across all themes (considering different padding sizes), resolutions, font-sizes, desktop managers, which at the same time would not be "too big" in some cases.

We currently don't plan on implementing a hard-minimum size for the eclipse window based on the real life limitations listed above. But if someone has an idea/patches, they are welcome to share.

(In reply to Christian Stadelmann from comment #3)
> for its Gtk widgets, then this issue might be covered by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=486068 already.

No, that patch is only specific to situations where widgets would get cut-off due to padding. It doesn't touch window size.


Based on limitations above, if there is no reply/objections/feedback to my comment, then I propose to close as wont_fix, as otherwise it's unlikely to get implemented and would just float around Bugzilla for many years to come.

With that said, please do feel free to share further enhancement requests. They are important to us. I think it's a good idea, but there are just real-life barriers that make it impractical. 

I will followup on this bug next week.

Comment 5 Mat Booth 2017-08-18 13:48:03 UTC
Thanks Leo for the upstream perspective. Closing WONTFIX per your comment.