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

@ -55,10 +55,15 @@ 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)
{
if (p != position_ || x_ != x || y_ != y)
{ {
position_ = p; position_ = p;
x_ = x; x_ = x;
y_ = y; y_ = y;
post_reshape();
}
} }
} }