Dynamically Positioning Resized WebView
Dynamically Positioning Resized WebView
- Subject: Dynamically Positioning Resized WebView
- From: Pierce Freeman <email@hidden>
- Date: Sat, 10 Jul 2010 09:51:01 -0700
- Thread-topic: Dynamically Positioning Resized WebView
Hi Everyone:
In my application, I am placing multiple instances of WebView right below
each other in a NSWindow. And in order to show the whole content without
scrolling, I am resizing the web views to the size of their content in
(void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)webFrame.
Normally when pragmatically positioning, I adjust the NSRectMake y axis to
the sum of the previous heights. However, as the resizing is done in a
separate function after the web view loads, I am unsure of how to have this
affect the main y axis variable in the original function. If anyone could
point me in the right direction, it would be much appreciated!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden