Opened 4 years ago

#12490 new defect

Under wxGTK, initial AUI pane sizes are wrong in wx(MDIChild)Frames with wxDefaultSize

Reported by: Carsten Owned by:
Priority: normal Milestone:
Component: wxGTK Version: stable-latest
Keywords: aui, mdi, panes Cc:
Blocked By: Blocking:
Patch: no

Description

Using wxGTK, the initial AUI pane sizes are wrong (too small) if the containing frame (wxFrame or wxMDIChildFrame) is created with wxDefaultSize (and possibly style wxMAXIMIZE), instead of a fixed size like wxSize(800, 600).
wxMSW is not affected.

I've created two patches to the aui sample that demonstrate the problem:

  • The simple patch is for wxFrame, where the problem is only mildly pronounced.
  • The MDI patch uses a wxMDIChildFrame, where the problem is clearly visible, as shown in the attached screenshot.

Attachments (3)

auidemo_simple.patch download (522 bytes) - added by Carsten 4 years ago.
Simple patch that creates the wxFrame with wxDefaultSize rather than fixed size
auidemo_mdi.patch download (2.4 KB) - added by Carsten 4 years ago.
This patch uses a wxMDIChildFrame, where the problem is clearly visible
Screenshot-wxAUI sample with MDI.png download (57.4 KB) - added by Carsten 4 years ago.
Screenshot of the wxMDIChildFrame case

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by Carsten

Simple patch that creates the wxFrame with wxDefaultSize rather than fixed size

Changed 4 years ago by Carsten

This patch uses a wxMDIChildFrame, where the problem is clearly visible

Changed 4 years ago by Carsten

Screenshot of the wxMDIChildFrame case

Note: See TracTickets for help on using tickets.