fullscreenmode and rect of a substack on mobile device ?

Sannyasin Brahmanathaswami brahma at hindu.org
Sun Aug 19 15:40:50 EDT 2018


@Brian Milby

Something just clicked... if fullscreenmode is not empty, then resizestack
messages are not generated.

You are right!  No "fillscreenmode" and 14 line of code works on iPhone.

But on not my Pixel.


----------------------

# Geometry

on preOpenCard

    resizeStack the width of this stack, the height of this stack

end preOpenCard

on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight

   # check it is landscape, turn off the navigation Bar

    if tNewWidth > pNewHeight then

        put 0, 0, pNewWidth, pNewHeight - 50 into tBrowserRect

        hide group "footer"

    else

        put 0, 0, pNewWidth, pNewHeight into tBrowserRect

        show group "footer"

end if

set the rect of widget "body" of me to tBrowserRect

end resizeStack


I will issue a bug report.


BR




More information about the use-livecode mailing list