Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: getting the ideal size of a web view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the ideal size of a web view?



On Nov 16, 2003, at 8:23 AM, John Sullivan wrote:

There isn't such a concept for HTML. HTML pages can in general flow themselves into arbitrary shapes, and are supposed to continue to look good at other sizes & shapes (such as when the font size is increased or decreased). It's true that some pages are laid out with a particular shape in mind, but that's more of a flaw in those pages than a feature to be advertised. So there isn't a concept of "best size" in WebKit. When you're zooming larger, you can compute how much taller you need to get to make the vertical scroll bar disappear, but when you're zooming smaller there's no ideal target size.

I realize that well designed pages page should flow to fit the browser window :-)


I guess I phrased the question poorly. Is there a public method to compute how big the web view needs to be to make the horizontal and/or vertical scroll bar disappear so when zooming my window I can make it wide enough (and perhaps tall enough if the screen is tall enough ) to make the scrollbar disappear, but no wider?

Thanks,
Jim
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >getting the ideal size of a web view? (From: Jim Correia <email@hidden>)
 >Re: getting the ideal size of a web view? (From: John Sullivan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.