OSX turn off clipping in composite controls (PR #26955)

27 views
Skip to first unread message

Stefan Csomor

unread,
Aug 31, 2026, 11:25:13 AM (2 days ago) Aug 31
to wx-...@googlegroups.com, Subscribed

see discussion in #26952


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26955

Commit Summary

  • fecc10e expose ClipToBounds getter
  • 8c5bde9 catch positioning at the borders of the parent

File Changes

(7 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26955@github.com>

Stefan Csomor

unread,
Aug 31, 2026, 11:35:07 AM (2 days ago) Aug 31
to wx-...@googlegroups.com, Push

@csomor pushed 1 commit.


View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26955/before/8c5bde961b9fc6a0c62d0a48f6cede4ce756067a/after/d35a4fb1b8588d5c972112e4e241ce772d1bc58f@github.com>

VZ

unread,
Aug 31, 2026, 11:45:03 AM (2 days ago) Aug 31
to wx-...@googlegroups.com, Subscribed

@vadz approved this pull request.

Great, thanks, this looks exactly like what I had in mind.

Did you check that this actually fixed #26952?

And, also, can we remove MacClipsToBounds() call added in cc0fd2c (Improve wxSpinCtrl sizing and appearance on macOS, 2025-09-07) now?


In src/osx/textctrl_osx.cpp:

> @@ -268,6 +268,16 @@ wxSize wxTextCtrl::DoGetSizeFromTextSize(int xlen, int ylen) const
     return size;
 }
 
+void wxTextCtrl::DoSetSize(int x, int y, int width, int height, int sizeFlags)
+{
+    wxTextCtrlBase::DoSetSize(x, y, width, height, sizeFlags);
+    wxWindow* parent = GetParent();
+    if ( parent && parent->MacIsUserPane() && GetPosition().y == 0 ) {

Tiny style nitpick

⬇️ Suggested change
-    if ( parent && parent->MacIsUserPane() && GetPosition().y == 0 ) {
+    if ( parent && parent->MacIsUserPane() && GetPosition().y == 0 )
+    {


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26955/review/5068382436@github.com>

Stefan Csomor

unread,
Aug 31, 2026, 12:57:26 PM (2 days ago) Aug 31
to wx-...@googlegroups.com, Push

@csomor pushed 1 commit.

  • 9be5d6e Update src/osx/textctrl_osx.cpp


View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26955/before/d35a4fb1b8588d5c972112e4e241ce772d1bc58f/after/9be5d6e61184bd2ec84d1037ad8411f27ed7aac9@github.com>

Stefan Csomor

unread,
Aug 31, 2026, 1:00:14 PM (2 days ago) Aug 31
to wx-...@googlegroups.com, Subscribed
csomor left a comment (wxWidgets/wxWidgets#26955)

Great, thanks, this looks exactly like what I had in mind.

Did you check that this actually fixed #26952?

yes, it does

And, also, can we remove MacClipsToBounds() call added in cc0fd2c (Improve wxSpinCtrl sizing and appearance on macOS, 2025-09-07) now?

according to my tests, it solves this as well


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26955/c5481649028@github.com>

VZ

unread,
Sep 1, 2026, 8:37:29 AM (yesterday) Sep 1
to wx-...@googlegroups.com, Subscribed

Closed #26955 via 7697af0.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26955/issue_event/30345573915@github.com>

Reply all
Reply to author
Forward
0 new messages