tree: damage stacked nodes when visibility changes
This commit is contained in:
parent
d1893a68eb
commit
fcaed80b84
3 changed files with 11 additions and 1 deletions
|
|
@ -785,7 +785,9 @@ impl StackedNode for FloatNode {
|
|||
stacked_node_impl!();
|
||||
|
||||
fn stacked_set_visible(&self, visible: bool) {
|
||||
self.visible.set(visible);
|
||||
if self.visible.replace(visible) != visible {
|
||||
self.state.damage(self.position.get());
|
||||
}
|
||||
if let Some(child) = self.child.get() {
|
||||
child.tl_set_visible(visible);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue