Make ui::positioner post reshape if child position changes
This commit is contained in:
parent
606249d6b7
commit
c03689c5b4
1 changed files with 8 additions and 3 deletions
|
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue