… and the proper measure of the total height is
"document.documentElement.scrollHeight".
— F
On 15 Jan 2013, at 10:14 AM, Fritz Anderson wrote:
> Well, this is dumb. All of my measurements were with the Simulator screen set
> to scale by 75%, which by coincidence made the numbers work
Well, this is dumb. All of my measurements were with the Simulator screen set
to scale by 75%, which by coincidence made the numbers work out for the height
of the content, and made the height of the view look wrong. It turns out the
situation is just the opposite: The views are in fact of the r
One more thing. Here's the skeleton of the HTML I'm feeding to the web view. It
may be a coincidence, but the height the view eventually attains (which is not
the .preferredHeight it is set to) is pretty good for the first two paragraphs
of the #content .
(id="content" looks collision-prone, bu
I'd forgotten that when I created the web view, I set the autoresizing flags so
the height and width are flexible. Here is the new windowDidFinishLoad:
- (void) webViewDidFinishLoad: (UIWebView *) webView
{
CGRect myFrame = self.frame;
myFrame.size.height = self.preferredHeight;
For a kiosk-style iPad app, I have a UIViewController (outer controller) that
responds to a button my allocating an overlay view and making it a subview of
the outer controller's view. The outer controller sets the overlay's height to
100 as a placeholder.
The overlay view contains a UIWebView.
On 24/09/2009, at 12:34 PM, DKJ wrote:
I need to learn more about how these resizing properties are
supposed to work.
True.
The autoresizing mask is not for the purpose you suppose it is. It's
there to tell a view how to resize when its *superview* resizes, which
in turn depends on the
I'm trying to understand the autoresizingMask property of UIView.
I want to display 1, 2, or 3 text labels in the tableHeaderView of a
UITableView. I'd like the header view to adjust its size
(specifically, its height) according to how many labels it's
displaying. (I'm using labels because