mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-11-11 07:10:31 +00:00
prevent cursor from sticking out of paragraph
This commit is contained in:
parent
9c46512f70
commit
08be3dbeac
@ -181,7 +181,8 @@ impl DrawableComponent for TableFilterComponent {
|
|||||||
.map_or(String::new(), |table| table.name.to_string())
|
.map_or(String::new(), |table| table.name.to_string())
|
||||||
.width()
|
.width()
|
||||||
+ 1) as u16)
|
+ 1) as u16)
|
||||||
.saturating_add(self.input_cursor_position),
|
.saturating_add(self.input_cursor_position)
|
||||||
|
.min(area.right().saturating_sub(2)),
|
||||||
area.y + 1,
|
area.y + 1,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user