From c03689c5b4339bfd28397054ccf1a0d376ff3679 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Tue, 29 Mar 2022 18:12:13 +0300 Subject: [PATCH] Make ui::positioner post reshape if child position changes --- libs/ui/source/positioner.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libs/ui/source/positioner.cpp b/libs/ui/source/positioner.cpp index 61e50ba1..0a8260d7 100644 --- a/libs/ui/source/positioner.cpp +++ b/libs/ui/source/positioner.cpp @@ -56,9 +56,14 @@ namespace psemek::ui void positioner::set_position(geom::point const & p, x_align x, y_align y) { - position_ = p; - x_ = x; - y_ = y; + if (p != position_ || x_ != x || y_ != y) + { + position_ = p; + x_ = x; + y_ = y; + + post_reshape(); + } } }