display.viewableContentWidth

Type Number
Library display.*
Revision 2017.3178
Keywords contentWidth
See also display.viewableContentHeight

Overview

A read-only property that contains the width of the viewable screen area in content coordinates.

This is useful since, depending on the content scaling mode and the aspect ratio of the device, some of the original content may be scaled in such a way that portions are off screen.