NbLayoutRulerService

Simple helper service to return Layout dimensions Depending of current Layout scroll mode (default or withScroll when scroll is moved to an element inside of the layout) corresponding dimensions will be returns - of documentElement in first case and .scrollable-container in the second.

Methods

NameDescription
getDimensions()
returns:Observable<NbLayoutDimensions>

Content dimensions

NbLayoutDimensions

Layout dimensions type

Properties

NameTypeDescription
clientHeightnumber

clientHeight

clientWidthnumber

clientWidth

scrollHeightnumber

scrollHeight

scrollWidthnumber

scrollWidth

LayoutScrollService
Previous page
Introduction
Next page

Need some help or found an issue?

Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.