editor: Represent scroll offset with more precision (#39367)
Closes #5355 Release Notes: - Fixed rendering glitches with files with more than 16 million lines (that occured due to floating number rounding errors). --------- Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
This commit is contained in:
co-authored by
Smit Barmase
parent
4c35274b6e
commit
d359a814f8
@@ -249,7 +249,7 @@ impl RenderOnce for KeybindingHint {
|
||||
blur_radius: px(0.),
|
||||
spread_radius: px(0.),
|
||||
}])
|
||||
.child(self.keybinding.size(rems_from_px(kb_size.0))),
|
||||
.child(self.keybinding.size(rems_from_px(kb_size))),
|
||||
)
|
||||
.children(self.suffix)
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ impl ListBulletItem {
|
||||
|
||||
impl RenderOnce for ListBulletItem {
|
||||
fn render(self, window: &mut Window, _cx: &mut App) -> impl IntoElement {
|
||||
let line_height = 0.85 * window.line_height();
|
||||
let line_height = window.line_height() * 0.85;
|
||||
|
||||
ListItem::new("list-item")
|
||||
.selectable(false)
|
||||
|
||||
Reference in New Issue
Block a user