fix: position of input label

This commit is contained in:
Ashley Wulber 2024-01-03 14:46:40 -05:00 committed by Ashley Wulber
parent 5cb818a5f9
commit 481cd5a0cd
2 changed files with 7 additions and 1 deletions

View file

@ -478,6 +478,12 @@ impl State {
.size(20)
.id(INPUT_ID.clone())
.into(),
cosmic::widget::text_input("", &self.entry_value)
.label("Test Input")
.on_input(Message::InputChanged)
.size(20)
.id(INPUT_ID.clone())
.into(),
self.color_picker_model
.picker_button(Message::ColorPickerUpdate, None)
.width(Length::Fixed(128.0))

View file

@ -1902,7 +1902,7 @@ pub fn draw<'a, Message>(
line_height,
shaping: text::Shaping::Advanced,
},
bounds.position(),
label_layout.bounds().position(),
appearance.label_color,
*viewport,
);