Adapted both to the same calculation of the required virtual size that is used in AdjustScrollbars() removing the need for adding magic 4
Now, importantly, wxTreeBook actually calls a real DoGetBestClientWidth() based on a known height and can correctly figure out if a vertical scrollbar is needed
This removes the ugly horizontal scrollbar in wxTreeBook when a the horizontal scrollbar appears.
Tested on macOS 26
You can view, comment on, or merge this pull request online at:
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26097@github.com>