Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wx.lib.splitter.MultiSplitterWindow SetMinimumPaneSize() doesn't work as intended #2632

Open
AlessandroMattiazzi opened this issue Oct 29, 2024 · 0 comments

Comments

@AlessandroMattiazzi
Copy link
Contributor

The function SetMinimumPaneSize() is working only on the first window, while the second can be resized smaller the minimum pane size, I think this is not the correct behaviour since the description reads as follow:

"""
Set the smallest size that any pane will be allowed to be
resized to.

param int `minSize`: the minimum size of pane

"""

This is actually an accurate description of what the same function in wx.SplitterWindow does.

Another problem with SetMinimumPaneSize() is that the window isn't automatically resized to the smallest size if its current size is smaller than the minimum, but a workaround can be applied with self.split.SetSashPosition(pane_idx, split_position).

Also it would be nice to clarify how the idx for each window is defined and where, maybe even let the user decide the number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant