Discussion:
[we] how do i get the size of the browser window?
B***@public.gmane.org
2011-10-23 21:19:05 UTC
Permalink
1, how does a web-app get the size of the browser window
within which it is being run, to resize its controls correctly?

2. what is the tip where i could have found this information
by myself, in the user-manual, without having to come here?

3. since it is my understanding that web-apps run on ipads
cannot be zoomed, are there any plans to fix that deficiency?

thank you for your assistance.

-bowerbird
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Christian Schmitz
2011-10-24 07:43:59 UTC
Permalink
Post by B***@public.gmane.org
1, how does a web-app get the size of the browser window
within which it is being run, to resize its controls correctly?
Have you checked webpage width and height properties?
Post by B***@public.gmane.org
2. what is the tip where i could have found this information
by myself, in the user-manual, without having to come here?
http://docs.realsoftware.com/index.php/Main_Page
Post by B***@public.gmane.org
3. since it is my understanding that web-apps run on ipads
cannot be zoomed, are there any plans to fix that deficiency?
Fill a feedback case.

Greetings
Christian
--
See you in Frankfurt, Germany at the Real Studio Database Days

More details and registration here:
http://www.monkeybreadsoftware.de/realbasic/events/frankfurt-2011-event.shtml



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
B***@public.gmane.org
2011-10-24 18:16:09 UTC
Permalink
Post by Christian Schmitz
Have you checked webpage width and height properties?
yeah, nice try, christian.
Post by Christian Schmitz
webpage1.title=str(webpage1.width)+"*"+str(webpage1.height)
it works. it works just fine.

until/unless, that is, you resize the webpage.

which, per instructions in the past, at least,
is the only way to force scrollbars to appear,
to scroll a textarea longer than the webpage.
Post by Christian Schmitz
webpage1.title=str(webpage1.width)+"*"+str(webpage1.height)
webpage1.height=4000
webpage1.width=3000
webpage1.title=webpage1.title+_
" "+str(webpage1.width)+"*"+str(webpage1.height)
it works fine the _first_ time through the event.

the first reported size equals the browser-window (e.g., 823*572),
and the second reported size equals the new size (i.e., 4000*3000).

but on the next resize (and subsequent ones), you'll see it _still_
reports the _original_ size of the browser window (i.e., 823*572),
followed again (correctly) by the modified size (i.e., 4000*3000)...

so there's some messy confound between the size of the webpage
and the size of the browser-window which contains the webpage,
and it would probably be best to consider them separate entities...
Post by Christian Schmitz
http://docs.realsoftware.com/index.php/Main_Page
yeah, um, i was looking for something more specific than that.
it's pretty easy for most people to get as far as "the main page".
Post by Christian Schmitz
Fill a feedback case.
well, i'm no longer a subscriber, so i don't believe that i can.

besides, i am more interested in an immediate workaround.

but thanks for your attempt to help on all 3 of my questions.

-bowerbird
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Loading...