From 9db6e582acd9dbf0efec5e3b535594baba226dcf Mon Sep 17 00:00:00 2001 From: Cole Green <17110935+nox7@users.noreply.github.com> Date: Mon, 5 Oct 2026 15:43:48 -0500 Subject: [PATCH] Refresh view after position or size adjustments Ensure view is updated after potential clipping changes. --- MyGUIEngine/src/MyGUI_Widget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MyGUIEngine/src/MyGUI_Widget.cpp b/MyGUIEngine/src/MyGUI_Widget.cpp index ff65d12a7..c9e5d4a23 100644 --- a/MyGUIEngine/src/MyGUI_Widget.cpp +++ b/MyGUIEngine/src/MyGUI_Widget.cpp @@ -606,12 +606,14 @@ namespace MyGUI setPosition(coord.point()); else if (resize) setSize(coord.size()); - else - _updateView(); // Unchanged local coordinates (including a resize rejected by an override) can still inherit movement. if (mCroppedParent != nullptr && mAbsolutePosition != mCroppedParent->getAbsolutePosition() + mCoord.point()) _updateGeometry(); + + // Parent clipping can change even when alignments leave coordinates unchanged + // The coordinate setters may return early, so refresh the view explicitly + _updateView(); } void Widget::setPosition(const IntPoint& _point)