0

Is there a way to force the orientation as landscape/portrait

Franch 11 jaar geleden bijgewerkt door icahill (Administrator) 11 jaar geleden 1
For most of the app I would like to force it to be portrait only but a couple of times I would like to force landscape only. Is this possible?

Thanks
There is a write only attribute for panels that you can use at a root level to stick into one orientation or the other. 

The attribute is called 'lock'. It determines an orientation to lock the device into. If the device is not currently in the orientation set to lock, the object targeted will not lock until the correct orientation becomes current. Value = landscape | portrait | none


<assign property="object:PANEL.lock" value="landscape">