Add simulate_window_resize.
Fixes up tests for movement in editor/scrolling. Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
68d309e79c
commit
b5924d6b11
8 changed files with 399 additions and 334 deletions
|
@ -208,8 +208,9 @@ impl TextStyle {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the rounded line height in pixels.
|
||||
pub fn line_height_in_pixels(&self, rem_size: Pixels) -> Pixels {
|
||||
self.line_height.to_pixels(self.font_size, rem_size)
|
||||
self.line_height.to_pixels(self.font_size, rem_size).round()
|
||||
}
|
||||
|
||||
pub fn to_run(&self, len: usize) -> TextRun {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue