Skip to content

Commit

Permalink
Merge branch 'main' into fix/absolute-position-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiving authored Nov 1, 2024
2 parents 83159c9 + e5f7f5a commit fbb71b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ If you are interested in supporting the development of this project feel free to

Thanks to my sponsors for supporting this project! 😄

<!-- sponsors --><a href="https://github.com/piny4man"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;8446285?u&#x3D;fd37db4dd9b4ba94dabe0bccc3a95ef2a35376ab&amp;v&#x3D;4" width="60px" alt="" /></a><a href="https://github.com/gqf2008"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;2295878?v&#x3D;4" width="60px" alt="高庆丰" /></a><!-- sponsors -->
<!-- sponsors --><a href="https://github.com/piny4man"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;8446285?u&#x3D;fd37db4dd9b4ba94dabe0bccc3a95ef2a35376ab&amp;v&#x3D;4" width="60px" alt="" /></a><a href="https://github.com/gqf2008"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;2295878?v&#x3D;4" width="60px" alt="高庆丰" /></a><a href="https://github.com/lino-levan"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;11367844?v&#x3D;4" width="60px" alt="Lino Le Van" /></a><!-- sponsors -->

### Special thanks 💪

Expand Down
1 change: 1 addition & 0 deletions crates/testing/src/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ pub fn launch_test_with_config<T: 'static + Clone>(
};

handler.init_dom();
handler.resize(handler.config.size);

handler
}
Expand Down
5 changes: 5 additions & 0 deletions crates/testing/src/test_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ impl<T: 'static + Clone> TestingHandler<T> {
state.information.viewport_size = size;
});
self.utils.sdom().get_mut().layout().reset();
self.utils
.sdom()
.get_mut()
.compositor_dirty_area()
.unite_or_insert(&Area::new((0.0, 0.0).into(), size));
}

/// Get the current [CursorIcon].
Expand Down

0 comments on commit fbb71b8

Please sign in to comment.