fix: position of input label
This commit is contained in:
parent
5cb818a5f9
commit
481cd5a0cd
2 changed files with 7 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue