Bug 1294229

Summary: Sizer method SetSizeHints(window) fails to set a minimum size that actually fits all controls
Product: [Fedora] Fedora Reporter: Florian Höch <florian.hoech>
Component: wxGTK3Assignee: Scott Talbert <swt>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: alexjnewt, dan, florian.hoech, rakesh.pandit, swt
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: wxGTK3-3.0.2-17.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-29 05:24:21 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:
Bug Depends On:    
Bug Blocks: 1277927    
Attachments:
Description Flags
Demo of the issue
none
Screenshot under Wayland
none
Screenshot under X11 (for comparison) none

Description Florian Höch 2015-12-25 15:40:20 UTC
Created attachment 1109415 [details]
Demo of the issue

Description of problem:
Sizer method SetSizeHints(window) (Fit(window) is also affected) fails to set a minimum size that's large enough to fit all controls under Wayland (can't test under X11 as it's unavailable on my test system). This is especially worrysome for dialogs as they are not user resizeable. The underlying issue is probably a wxGTK3 bug.

Version-Release number of selected component (if applicable):
wxPython-3.0.2-7.fc23

How reproducible:
Always

Steps to Reproduce:
1. See attached demo code

Actual results:
SetSizeHints() / Fit() should make the window large enough to fit all controls (if enough screen real estate is available)

Expected results:
The window size after SetSizeHints() / Fit() should be large enough to fit all controls (if enough screen real estate is available)

Comment 1 Scott Talbert 2015-12-26 04:28:34 UTC
Can you provide a screenshot of what the demo code produces on Wayland?

Comment 2 Florian Höch 2016-01-11 13:28:22 UTC
Created attachment 1113611 [details]
Screenshot under Wayland

Comment 3 Florian Höch 2016-01-11 13:29:06 UTC
Created attachment 1113612 [details]
Screenshot under X11 (for comparison)

Comment 4 Scott Talbert 2016-01-12 05:51:07 UTC
Okay, I can reproduce too with Wayland (once I figured out how to run it).  I see issues with my own wxPython applications, too.

Comment 5 Scott Talbert 2016-01-20 03:20:49 UTC
Reported upstream: http://trac.wxwidgets.org/ticket/17336

Comment 6 Fedora Update System 2016-02-25 04:03:27 UTC
wxGTK3-3.0.2-17.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8b75629956

Comment 7 Fedora Update System 2016-02-26 20:54:00 UTC
wxGTK3-3.0.2-17.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8b75629956

Comment 8 Fedora Update System 2016-02-29 05:24:14 UTC
wxGTK3-3.0.2-17.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.