Ask for explicit Length in center_* methods
This commit is contained in:
parent
b30d34f728
commit
05f69f495e
13 changed files with 40 additions and 41 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use iced::widget::{button, column, container, text};
|
||||
use iced::widget::{button, center, column, text};
|
||||
use iced::{system, Command, Element};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
|
|
@ -136,6 +136,6 @@ impl Example {
|
|||
}
|
||||
};
|
||||
|
||||
container(content).center().into()
|
||||
center(content).into()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue