Andrey Rudenko
Andrey Rudenko

Reputation: 1301

How to get sizes of visible area in Sencha Touch 2 application

I want to show DIV element on Panel with height equal to half size of visible area of the panel. There is no problem with resize. But how can I get sizes of visible area of the panel (without titlebars & toolbars)?

Upvotes: 2

Views: 221

Answers (1)

Andrey Rudenko
Andrey Rudenko

Reputation: 1301

Ok, I have found only one way to do that. You can find element with class x-scroll-container in current view. Sizes of this element will be the sizes of visible area.

Upvotes: 2

Related Questions