Make ui::positioner post reshape if child position changes

This commit is contained in:
Nikita Lisitsa 2022-03-29 18:12:13 +03:00
parent 606249d6b7
commit c03689c5b4

View file

@ -56,9 +56,14 @@ namespace psemek::ui
void positioner::set_position(geom::point<float, 2> const & p, x_align x, y_align y) void positioner::set_position(geom::point<float, 2> const & p, x_align x, y_align y)
{ {
position_ = p; if (p != position_ || x_ != x || y_ != y)
x_ = x; {
y_ = y; position_ = p;
x_ = x;
y_ = y;
post_reshape();
}
} }
} }