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
Using the following code, the text "doesn't show" is not present on the window
"doesn't show"
use iced::{Element, Length, Sandbox, Settings}; use iced::widget::{column, row, text, vertical_space}; pub fn main() -> iced::Result { App::run(Settings::default()) } struct App; impl Sandbox for App { type Message = (); fn new() -> Self { Self } fn title(&self) -> String { String::from("App") } fn update(&mut self, _: Self::Message) { } fn view(&self) -> Element<Self::Message> { let text1: Element<_> = text("text") .into(); let text3: Element<_> = text("doesn't show") .into(); let separator = vertical_space(Length::Fill) .into(); let content: Element<_> = row(vec![text1, separator]) .into(); column(vec![content, text3]) .into() } }
I would expect it to use minimal possible space for the "doesn't show" text to show and place the widget on the bottom of the screen.
#1727 is possibly related but I felt like this is different use case
crates.io release
Linux
No response
The text was updated successfully, but these errors were encountered:
Currently, in order to get this to work, you need to set width(Length::Fill) both for the row and the column manually as well.
width(Length::Fill)
row
column
Coincidentally, I am currently working on a branch that fixes most of these inconsistencies.
Sorry, something went wrong.
Explicitly fill scrollable height to fill
56c4cc9
This fixes an issue where Fill-width elements in the column would disappear, maybe because of these issues: iced-rs/iced#715 iced-rs/iced#2186 iced-rs/iced#2192
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Using the following code, the text
"doesn't show"
is not present on the windowWhat is the expected behavior?
I would expect it to use minimal possible space for the
"doesn't show"
text to show and place the widget on the bottom of the screen.#1727 is possibly related but I felt like this is different use case
Version
crates.io release
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: