mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 19:37:54 +03:00
ui: popup: Don't allow scrolling past the end of content
This commit is contained in:
parent
b66d3d3d9d
commit
3307f44ce2
3 changed files with 19 additions and 10 deletions
|
@ -241,11 +241,6 @@ impl Component for Markdown {
|
|||
} else if content_width > text_width {
|
||||
text_width = content_width;
|
||||
}
|
||||
|
||||
if height >= viewport.1 {
|
||||
height = viewport.1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Some((text_width + padding, height))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue