Re: Device rotation and browser widget

2016-09-08 Thread Sannyasin Brahmanathaswami
The caveat is: Safari app in iOS and Chrome app on Android "own" the entire 
card rect.  

Since, in LC we can set that rect for the browser widget to anything we want… 
how exactly should it be have when the phone is turned sideways? or turned 
"upright" (if watching a movie in e.g. Youtube, sideways)  

see:

http://quality.livecode.com/show_bug.cgi?id=17906

I offered one algorithm (brainstorm) at the bug report above. Anyone else 
interested can please add themselves to watch that bug and possibly comment on 
a better option for how a truly "responsive" browser widget should work. What 
hooks, props, are needed to fine tune the control of the browser widget… both 
placement on the card and orientation of web content in that rect?

BR

On 9/8/16, 6:42 AM, "use-livecode on behalf of J. Landman Gay" 
 
wrote:

I tried to do that but I'm not getting any resizestack message at all. One 
permutation did send the message but the browser still failed to resize 
correctly so I changed the script and now I can't remember what I did when 
the message was sent. I've been juggling things between orientationChanged, 
resizestack, and a browser setup handler, and only one combination gave me 
a resizestack message.

Too many variables.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Device rotation and browser widget

2016-09-08 Thread J. Landman Gay
I tried to do that but I'm not getting any resizestack message at all. One 
permutation did send the message but the browser still failed to resize 
correctly so I changed the script and now I can't remember what I did when 
the message was sent. I've been juggling things between orientationChanged, 
resizestack, and a browser setup handler, and only one combination gave me 
a resizestack message.


Too many variables.

Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On September 8, 2016 11:32:11 AM Monte Goulding  wrote:

Hmm... Have you tried wrapping the resizestack handler in try and putting 
any error or otherwise logging the message


Sent from my iPhone


On 8 Sep 2016, at 8:35 AM, J. Landman Gay  wrote:

For a mobile app, I am trying to get a card containing a browser widget to 
rotate and resize/reposition when the device is rotated. It seems I can't 
set the rect of the widget, it doesn't respond correctly or errors, though 
the orientation of its content does change. I've tried too many things to 
list them all but no success. OrientationChanged does trigger but 
resizeStack usually doesn't for some reason.


Basically what I'm seeing is that LC handles the rotation but doesn't 
reposition or resize the widget.


Has anyone done this? I'm testing on Android for now.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Device rotation and browser widget

2016-09-07 Thread Monte Goulding
Hmm... Have you tried wrapping the resizestack handler in try and putting any 
error or otherwise logging the message

Sent from my iPhone

> On 8 Sep 2016, at 8:35 AM, J. Landman Gay  wrote:
> 
> For a mobile app, I am trying to get a card containing a browser widget to 
> rotate and resize/reposition when the device is rotated. It seems I can't set 
> the rect of the widget, it doesn't respond correctly or errors, though the 
> orientation of its content does change. I've tried too many things to list 
> them all but no success. OrientationChanged does trigger but resizeStack 
> usually doesn't for some reason.
> 
> Basically what I'm seeing is that LC handles the rotation but doesn't 
> reposition or resize the widget.
> 
> Has anyone done this? I'm testing on Android for now.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Device rotation and browser widget

2016-09-07 Thread J. Landman Gay
For a mobile app, I am trying to get a card containing a browser widget 
to rotate and resize/reposition when the device is rotated. It seems I 
can't set the rect of the widget, it doesn't respond correctly or 
errors, though the orientation of its content does change. I've tried 
too many things to list them all but no success. OrientationChanged does 
trigger but resizeStack usually doesn't for some reason.


Basically what I'm seeing is that LC handles the rotation but doesn't 
reposition or resize the widget.


Has anyone done this? I'm testing on Android for now.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode