Skip to content

Commit 8de643f

Browse files
camilomcatasusnot-fl3
authored andcommitted
Updates position of InputText to be relative to parent window is specified
1 parent 8d23c9e commit 8de643f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui/widgets/input.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ impl<'a> InputText<'a> {
9292

9393
let pos = self
9494
.pos
95+
.map(|pos| pos + context.window.cursor.fit(size, Layout::Vertical))
9596
.unwrap_or_else(|| context.window.cursor.fit(size, Layout::Vertical));
9697

9798
let editbox_area_w = if self.label.is_empty() {

0 commit comments

Comments
 (0)