We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's have this SSCCE:
use iced::{widget::*, Color, Element, Length, Sandbox, Settings}; fn main() -> Result<(), iced::Error> { <App as Sandbox>::run(Settings::default()) } struct App; impl Sandbox for App { type Message = (); fn new() -> Self { Self } fn title(&self) -> String { String::new() } fn update(&mut self, _: Self::Message) {} fn view(&self) -> Element<'_, Self::Message> { let options: [Element<'_, (), Theme, Renderer>; 2] = [ text("first text").height(Length::Fill).into(), text("second text").into(), ]; let column: Element<'_, (), Theme, Renderer> = column(options).height(Length::Shrink).into(); column } fn theme(&self) -> Theme { Theme::KanagawaDragon } }
iced = "0.12.1"
I can only see the 2nd text "second text". The 1st is hidden/gone.
I should be able too see both texts.
crates.io release
Windows
No response
The text was updated successfully, but these errors were encountered:
Maybe try using a row / column instead of [Element<'_, (), Theme, Renderer>; 2]. I've never seen that type of pattern.
[Element<'_, (), Theme, Renderer>; 2]
You want it to be like:
let my_row = row![text("hii!!"), text("second txt!!")];
I think the problem you have is because the row will decide where the objects inside are placed? And the [Element] will not.
[Element]
Sorry, something went wrong.
No branches or pull requests
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Let's have this SSCCE:
iced = "0.12.1"
I can only see the 2nd text "second text". The 1st is hidden/gone.
What is the expected behavior?
I should be able too see both texts.
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: