I've had a few people asking for this so In v2.0.2 I have added in height and width as properties on the section object in both desktop and web/mobile. These return the pixel width and height respectively.
Lianja.get('page1.section1).width
Lianja.get('page1.section1).height
I have also added in a 'resized' delegate on a canvas or custom section so you can detect when it changes size and can readjust your UI components accordingly. Bear in mind this may be called before your components exist as the page is being laid out.
I've also added support for programmatically (in the ready/resized delegate for example) setting the top, left, bottom and right properties of UI elements inside canvas and custom sections to better handle a responsive UI.
Bookmarks