ViewportOffset
interface
The offset (in pixels) of the viewport from every direction used when positioning a sticky toolbar or other absolutely positioned UI elements.
Properties
-
bottom : number | undefined
inheritedmodule:ui/editorui/editorui~ViewportOffset#bottom
The bottom offset in pixels.
-
left : number | undefined
inheritedmodule:ui/editorui/editorui~ViewportOffset#left
The left offset in pixels.
-
right : number | undefined
inheritedmodule:ui/editorui/editorui~ViewportOffset#right
The right offset in pixels.
-
top : number | undefined
inheritedmodule:ui/editorui/editorui~ViewportOffset#top
The top offset in pixels.
-
visualTop : number | undefined
module:ui/editorui/editorui~ViewportOffset#visualTop
The top offset of the visual viewport.
This value is calculated based on the visual viewport position.