I enter a new handler into stack script

on resizestack pNewWidth, pNewHeight, pOldWidth, pOldHeight
    put pNewWidth  &&  pNewHeight  && pOldWidth &&  pOldHeight into it
    answer it with "OK"
 end resizestack

1) on switch on portrait to landscape (turn sideways) I get a resizeStack 
answer.
2) on switch on landscape back to portrait (turn phone upright)
   -- I get the same information as before (wrong...) tNewWidth is 736 when is 
should now to 414.
  -- just adding the resize hander break the screen redraw! 

     Working version:

Go stack url "http://wiki.hindu.org/uploads/BrowserLandscapeTest_r3.livecode";

      Not working:

go stack url "http://wiki.hindu.org/uploads/BrowserLandscapeTest_r4.livecode";

so, this goes back in @Jacque comments a few days ago...and it is not only on 
Android, 

" This is what I have:

on resizeStack x,y
   ANSWER X &COMMA& Y
   setupUI x,y
end resizeStack

The answer dialog appeared once on my first test (with no x,y values)
and all test builds after that never showed an answer dialog at all. The
setupUI handler also has an answer dialog for testing and I haven't seen
it even once.
"
 It not only does show the correct rect, it breaks (on iOS) the screen 
redraw....


BR wrote

    I wonder it you were to use resize handler, could you do with even less 
code? OR would the resize handler report the actual Zoomed In rect?   Have to 
test

_______________________________________________
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

Reply via email to