update to support winit multi-window

This commit is contained in:
Ashley Wulber 2023-12-07 15:27:52 -05:00 committed by Ashley Wulber
parent 77e9a160c4
commit c66e4aafd0
13 changed files with 149 additions and 97 deletions

View file

@ -31,10 +31,10 @@ where
.width(self.width)
.height(bounds.height - 8.0 - position.y);
let mut node =
self.content
.as_widget()
.layout(&mut self.tree, renderer, &limits);
let mut node = self
.content
.as_widget()
.layout(&mut self.tree, renderer, &limits);
let node_size = node.size();
node.move_to(Point {