Skip to content

wxGUI/tplot: Make the window resizable - #7820

Open
saket0187 wants to merge 1 commit into
OSGeo:mainfrom
saket0187:Fix-resize-issue-in-g.gui.tplot
Open

wxGUI/tplot: Make the window resizable#7820
saket0187 wants to merge 1 commit into
OSGeo:mainfrom
saket0187:Fix-resize-issue-in-g.gui.tplot

Conversation

@saket0187

Copy link
Copy Markdown
Contributor

This PR addresses the issue reported by @ninsbl.

Although I cannot verify the changes directly since I am on macOS, I hope this resolves it. @ninsbl, could you please test this? If it doesn't work, we can either close this PR or pass it along to someone else.

AI Summary This PR fixes an issue where the g.gui.tplot window could only be resized via maximize, not by dragging its edges. The frame previously had no sizer of its own and was fit directly to its content's minimum size with no explicit minimum set, leaving no room to shrink and (on GTK) no reliable resize grip to grow from. The fix gives the frame its own sizer wrapping the main panel, fits through that sizer (preserving the original opening size while capping at the display area), and sets an explicit 400×400 minimum so the window can be dragged smaller; nothing in the codebase sets a maximum, so growing was never actually blocked by wx. It also removes five stray sizer.Fit(self) calls on notebook sub-panels that were mistakenly resizing the whole frame instead of their own panel.

Note: Claude was used as a coding assistant for this PR..

@github-actions github-actions Bot added GUI wxGUI related Python Related code is in Python labels Aug 10, 2026
@ninsbl

ninsbl commented Aug 16, 2026

Copy link
Copy Markdown
Member

Thanks, @saket0187 for addressing this. The proposed changes work fine. When I went back to the Add_stds branch after testing this, I - however - could not reproduce the problematic behavior I experienced on that branch either. So it may have been a temporary (and maybe WSL related) issue. Unfortunately, I am not that familiar with WX specific code. @petrasovaa do you have any opinion about this PR? Does it make sense any way?

@petrasovaa

Copy link
Copy Markdown
Contributor

Generally this makes sense and I tested on linux. One thing we could add here is to increase the padding around the input widgets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI wxGUI related Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants