What is the best way to change the dimensions of the browser on the orientationChanged event?
I though it would be just a simple case of changing the width of the group "myBrowser" but I just can't get it to work?
--MobGUI 1.27 and LC 7
using orientationChanged with browser
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: using orientationChanged with browser
The LC group is only a placeholder in the IDE for the browser that will appear on the device, so if you change it's dimensions, you then have to update the actual native control...
HTH
Code: Select all
mobileControlSet "myBrowser", "rect", the rect of group "myBrowser"
LiveCode Development & Training : http://splash21.com
-
- Posts: 15
- Joined: Wed Sep 11, 2013 3:44 pm
Re: using orientationChanged with browser
Thank you, worked perfectly.