From 94c066a34900845297c41c134a9a910124a5833d Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 16 Sep 2018 23:48:54 +0800 Subject: Develop toggle button. --- CruUI/ui/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CruUI/ui/control.cpp') 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(); } } -- cgit v1.2.3