[SOLVED] Re: Resizing UIView: Content CALayer doesn't resize

2013-01-15 Thread Fritz Anderson
… 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

Re: Resizing UIView: Content CALayer doesn't resize

2013-01-15 Thread Fritz Anderson
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

Re: Resizing UIView: Content CALayer doesn't resize

2013-01-14 Thread Fritz Anderson
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

Re: Resizing UIView: Content CALayer doesn't resize

2013-01-14 Thread Fritz Anderson
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;

Resizing UIView: Content CALayer doesn't resize

2013-01-14 Thread Fritz Anderson
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.

Re: Resizing UIView

2009-09-23 Thread Graham Cox
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

Resizing UIView

2009-09-23 Thread DKJ
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