Hey Everyone,

What would be the best way to detect the size of the window and adjust the
canvas accordingly?

Can it be done in my OL app in a script that runs @ the beginning?

Ex if canvas.height < [I]desired height[/I] or canvas.width < [I]desired
width[/I]
   canvas.height = blah
   canvas.width = halb
else
   100%

or should this be done in index.html, before my OL app runs? If this is the
case, how do I do that?

I ask because I like to utilize the entire window but this can obviously
cause problems in small or sometimes really large window. The iphone for
example.

Thanks in advance,

Ignotus

Reply via email to