also invalidate previous location when resizing a widget
Fixes #7617 widget::set_origin should probably also call queue_redraw(), not fully sure yet though.
This commit is contained in:
parent
9fffd88242
commit
9c84c07497
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,7 @@ void widget::set_size(const point& size)
|
|||
assert(size.x >= 0);
|
||||
assert(size.y >= 0);
|
||||
|
||||
queue_redraw();
|
||||
width_ = size.x;
|
||||
height_ = size.y;
|
||||
|
||||
|
@ -241,6 +242,7 @@ void widget::place(const point& origin, const point& size)
|
|||
assert(size.x >= 0);
|
||||
assert(size.y >= 0);
|
||||
|
||||
queue_redraw();
|
||||
x_ = origin.x;
|
||||
y_ = origin.y;
|
||||
width_ = size.x;
|
||||
|
|
Loading…
Add table
Reference in a new issue