LC 8 dp 14 Browser Widget not "obeying" position instructions

Ali Lloyd ali.lloyd at livecode.com
Sun Feb 21 17:58:46 EST 2016


I have seen something like this too, but haven't yet got a recipe - looks
like a redraw issue though. Perhaps to do with setting the rect under lock
screen, or changing the tool under lock screen/messages or something like
that.

On Sun, 21 Feb 2016 at 03:51, Sannyasin Brahmanathaswami <brahma at hindu.org>
wrote:

>
> working in LC 8 DP 14 now...
>
> See my other thread appropo and app archtecture requiring changing from
> portrait to landscape and back again as we move through the stack/cards --
> in the absence of any "best practices" I'm hacking this from ground zero
>
> set custom prop for each card:
>
> uOrientation | Portrait #or
> uOrientation | Landscape #
>
> Stack Script:
>
>
> ###### Orientation Change Ups
>
> on setOrientation
> if the uOrientation of this card is "Landscape" then
> set the width of this stack to 736
> set the height of this stack to 414
> else
> set the width of this stack to 414
> set the height of this stack to 736
> end if
> end setOrientation
>
> CARD: webBrowserLandscape
>
> objects:
> 1 webBrowser Widget "sivaBrowser" set to 0,20,736,414, location locked
> 1 field "emulator" set to 0,20,736,414
>
> Card Script:
>
> on preopencard
>    setOrientation
> end preopencard
>
>
> on resizeStack x,y
>    set the top of fld  "emulater" to 20
>    set the top of widget "sivaBrowser" to 20
> end resizeStack
>
>
> Result: fld Emulater appears in the correct location after the resizeSTack
> finishes and unlocks the screen
>
> widget is stuck way down the card and does not move.
>
> I've tried various methods, but the clincher is that even in running this
> in the message box
>
>  set the top of widget "sivaBrowser" to 20
>
> the widget is unresponsive
>
> BUT, if I click out to the pointer tool the widget suddenly a) loses the
> html of the page it is on and b) jumps into the proper position.
>
> I think this is a bug.
>
> Can anyone confirm.
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list