Skip to content

Commit

Permalink
updated operation container to include bounds due to new iced change
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Jul 28, 2023
1 parent 3fb41d1 commit 7cdfadf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/menu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Application for App {
SizeOption::Uniform => {
menu_bar!(menu_1(self), menu_2(self), menu_3(self), menu_4(self))
.item_width(ItemWidth::Uniform(180))
.item_height(ItemHeight::Uniform(30))
.item_height(ItemHeight::Uniform(25))
}
SizeOption::Static => menu_bar!(
menu_1(self),
Expand All @@ -179,7 +179,7 @@ impl Application for App {
menu_5(self),
)
.item_width(ItemWidth::Static(180))
.item_height(ItemHeight::Static(30)),
.item_height(ItemHeight::Static(25)),
}
.spacing(4.0)
.bounds_expand(30)
Expand Down
2 changes: 1 addition & 1 deletion src/native/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ where
renderer: &Renderer,
operation: &mut dyn Operation<Message>,
) {
operation.container(None, &mut |operation| {
operation.container(None, layout.bounds(), &mut |operation| {
self.content.operate(
&mut tree.children[0],
layout
Expand Down
2 changes: 1 addition & 1 deletion src/native/tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ where
operation: &mut dyn Operation<Message>,
) {
let active_tab = self.tab_bar.get_active_tab_idx();
operation.container(None, &mut |operation| {
operation.container(None, layout.bounds(), &mut |operation| {
self.tabs[active_tab].as_widget().operate(
&mut tree.children[active_tab],
layout
Expand Down

0 comments on commit 7cdfadf

Please sign in to comment.