You probably still want to set the rect for the footer to be sure it lands where you want it on different size devices. That could be done in the preOpenCard handler (just put it where it needs to be for portrait)
on preOpenCard local tWidth, tHeight, tFooterRect put the width of this stack into tWidth put the height of this stack into tHeight if tWidth > tHeight then put 0,tWidth-50,tHeight,tWidth into tFooterRect else put 0,tHeight-50,tWidth,tHeight into tFooterRect end if set the rect of widget "footer" of me to tFooterRect resizeStack tWidth, tHeight end preOpenCard If the Pixel does receive the orientationChanged messages, then you could use my first example. That code does actually work on the iPhone, it is just not necessary to manage it by hand like that. On Sun, Aug 19, 2018 at 2:40 PM, Sannyasin Brahmanathaswami via use-livecode <use-livecode@lists.runrev.com> wrote: > @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 > > _______________________________________________ > 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