window width and orientation

Just starting out? Need help? Post your questions and find answers here.
poshu
Posts: 96
Joined: Mon Feb 24, 2014 11:46 pm

window width and orientation

Post by poshu »

Here is a short code to illustrate my problem :

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())
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?