diff options
Diffstat (limited to 'CruUI/ui/control.cpp')
-rw-r--r-- | CruUI/ui/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp index 7a705b4b..d2864fce 100644 --- a/CruUI/ui/control.cpp +++ b/CruUI/ui/control.cpp @@ -169,9 +169,9 @@ namespace cru { if (old_position_ == position) // if cache has been refreshed and no pending notify old_position_ = position_; position_ = position; + LayoutManager::GetInstance()->InvalidateControlPositionCache(this); if (auto window = GetWindow()) { - window->GetLayoutManager()->InvalidateControlPositionCache(this); window->Repaint(); } } |