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
If I extend the widget gallery with the code below:
widget-gallery/src/labels.rs
use floem::{ cosmic_text::{Style as FontStyle, Weight}, peniko::Color, views::{label, static_label, tooltip, Decorators}, IntoView, }; use crate::form::{form, form_item}; pub fn label_view() -> impl IntoView { form({ ( form_item("Simple Label:".to_string(), 120.0, || { tooltip(label(move || "This is a simple label".to_owned()), || { static_label("This is a tooltip for the label.") }) }), form_item("Styled Label:".to_string(), 120.0, || { label(move || "This is a styled label".to_owned()).style(|s| { s.background(Color::YELLOW) .padding(10.0) .color(Color::GREEN) .font_weight(Weight::BOLD) .font_style(FontStyle::Italic) .font_size(24.0) }) }), + form_item("Simple Label:".to_string(), 120.0, || { + "My multiline label\nWith a second line\nAnd a third" + }), ) }) }
The text select crashes as soon as I start the selection on the middle line and select up and down.
The text was updated successfully, but these errors were encountered:
I have other multiline labels that are working just fine. Not sure why this one in particular is crashing
Sorry, something went wrong.
It crashes in my app as well which is how I found this.
fixed via #493
No branches or pull requests
If I extend the widget gallery with the code below:
widget-gallery/src/labels.rs
The text select crashes as soon as I start the selection on the middle line and select up and down.
The text was updated successfully, but these errors were encountered: