height

Returns the viewport height of the scrollable element.

Example

<div data-role="view">
  <a data-role="button" data-click="getHeight">Get Height</a>
   <div data-role="scroller" style="width: 200px; height: 200px" id="scroller">
      <div style="height: 500px">
        Content
      </div>
    </div>
    bar
 </div>

<script>
function getHeight() {
  console.log($("#scroller").data("kendoMobileScroller").height());
}

new kendo.mobile.Application();
</script>

Returns

Number the viewport height in pixels.

In this article
Not finding the help you need? Improve this article