window width and orientation
Posted: Mon May 01, 2017 9:49 am
Here is a short code to illustrate my problem : On both android (with Firefox) and iOS, when I change the orientation of my device, width is always the same... The page is actually scalled down when in portrait mode... What am I doing wrong?
Code: Select all
Procedure Handler_Resize()
Debug WindowWidth(0)
Debug WindowHeight(0)
EndProcedure
OpenWindow(0,0,0,0,0,"test",#PB_Window_Background)
BindEvent(#PB_Event_SizeWindow,@Handler_Resize())