Clean up inline assist editor rendering (#15536)
Release Notes: - N/A --------- Co-authored-by: Nathan <nathan@zed.dev> Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
73d8370177
commit
5b1ea7eda0
19 changed files with 267 additions and 1777 deletions
|
@ -1366,11 +1366,7 @@ impl<'a> WindowContext<'a> {
|
|||
|
||||
/// The line height associated with the current text style.
|
||||
pub fn line_height(&self) -> Pixels {
|
||||
let rem_size = self.rem_size();
|
||||
let text_style = self.text_style();
|
||||
text_style
|
||||
.line_height
|
||||
.to_pixels(text_style.font_size, rem_size)
|
||||
self.text_style().line_height_in_pixels(self.rem_size())
|
||||
}
|
||||
|
||||
/// Call to prevent the default action of an event. Currently only used to prevent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue