gpui: Fix pre-edit position after applying scale factor (#18214)
before:  after:  Release Notes: - N/A
This commit is contained in:
parent
65f6a7e5bc
commit
8ae74bc6df
10 changed files with 31 additions and 21 deletions
|
@ -2612,6 +2612,12 @@ impl From<ScaledPixels> for f64 {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<ScaledPixels> for u32 {
|
||||
fn from(pixels: ScaledPixels) -> Self {
|
||||
pixels.0 as u32
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents a length in rems, a unit based on the font-size of the window, which can be assigned with [`WindowContext::set_rem_size`][set_rem_size].
|
||||
///
|
||||
/// Rems are used for defining lengths that are scalable and consistent across different UI elements.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue