using orientationChanged with browser

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
ckelly5430
Posts: 15
Joined: Wed Sep 11, 2013 3:44 pm

using orientationChanged with browser

Post by ckelly5430 » Wed Jun 11, 2014 11:02 pm

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

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: using orientationChanged with browser

Post by splash21 » Thu Jun 12, 2014 9:32 am

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...

Code: Select all

mobileControlSet "myBrowser", "rect", the rect of group "myBrowser"
HTH

:)
LiveCode Development & Training : http://splash21.com

ckelly5430
Posts: 15
Joined: Wed Sep 11, 2013 3:44 pm

Re: using orientationChanged with browser

Post by ckelly5430 » Thu Jun 12, 2014 11:01 am

Thank you, worked perfectly.

Post Reply

Return to “MobGUI”