Increase accuracy of various Web APIs (#2946)
This commit is contained in:
parent
db8de03142
commit
c4d70d75c1
9 changed files with 73 additions and 38 deletions
|
|
@ -629,8 +629,11 @@ impl Window {
|
|||
///
|
||||
/// - **iOS:** Can only be called on the main thread. Sets the top left coordinates of the
|
||||
/// window in the screen space coordinate system.
|
||||
/// - **Web:** Sets the top-left coordinates relative to the viewport.
|
||||
/// - **Web:** Sets the top-left coordinates relative to the viewport. Doesn't account for CSS
|
||||
/// [`transform`].
|
||||
/// - **Android / Wayland:** Unsupported.
|
||||
///
|
||||
/// [`transform`]: https://developer.mozilla.org/en-US/docs/Web/CSS/transform
|
||||
#[inline]
|
||||
pub fn set_outer_position<P: Into<Position>>(&self, position: P) {
|
||||
self.window.set_outer_position(position.into())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue