mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update layer bounds on resize
This fixes a bug where fixed-position layers are not repositioned when the window is resized.
This commit is contained in:
parent
eea49ee1d9
commit
8dd1a363cb
2 changed files with 6 additions and 6 deletions
|
@ -499,7 +499,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
let need_new_root_layer = !self.update_layer_if_exists(layer_properties);
|
||||
if need_new_root_layer {
|
||||
let root_layer = self.find_pipeline_root_layer(layer_properties.pipeline_id);
|
||||
root_layer.update_layer_except_size(layer_properties);
|
||||
root_layer.update_layer_except_bounds(layer_properties);
|
||||
|
||||
let root_layer_pipeline = root_layer.extra_data.borrow().pipeline.clone();
|
||||
let first_child = CompositorData::new_layer(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue