Skip to content

Commit 318275a

Browse files
Ashfaaq18not-fl3
authored andcommitted
updates the position of the checkbox relative to the window
1 parent 71372fd commit 318275a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui/widgets/checkbox.rs

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

6565
let pos = self
6666
.pos
67+
.map(|pos| pos + context.window.cursor.fit(size, Layout::Vertical))
6768
.unwrap_or_else(|| context.window.cursor.fit(size, Layout::Vertical));
6869

6970
let whole_area = Vec2::new(

0 commit comments

Comments
 (0)