else return nil;
}
+- (void) setNeedsLayout {
+ [super setNeedsLayout];
+
+ WebFrame *frame([[[self _documentView] webView] mainFrame]);
+ if ([frame respondsToSelector:@selector(setNeedsLayout)])
+ [frame setNeedsLayout];
+}
+
@end
static void $UIWebViewWebViewDelegate$_clearUIWebView(UIWebViewWebViewDelegate *self, SEL sel) {
if ([self hidesNavigationBar])
[self _setHidesNavigationBar:YES animated:animated];
+ // XXX: why isn't this evern called automatically?
+ [[self webView] setNeedsLayout];
+
[self dispatchEvent:@"CydiaViewWillAppear"];
[super viewWillAppear:animated];
}
#include <UIKit/UIKit.h>
// }}}
// #import <*> {{{
+#import <WebKit/WebFrame.h>
#import <WebKit/WebPreferences.h>
// }}}
// typedef enum {*} *; {{{
@end
// }}}
// @interface Web* (*) {{{
+@interface WebFrame (Apple)
+- (void) setNeedsLayout;
+@end
+
@interface WebPreferences (Apple)
+ (void) _setInitialDefaultTextEncodingToSystemEncoding;
- (void) _setLayoutInterval:(NSInteger)interval;