Commit f06bc841 authored by darin's avatar darin
Browse files

Fixed anomalies with plugin positioning caused by my switch to

	NSViewFocusDidChangeNotification. Turns out that is not sent during
	live resize, but we need things to work during live resize.

        * Plugins.subproj/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView start]): Register for changes in the
	bounds and frame of all superviews again, instead of using
	NSViewFocusDidChangeNotification.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a7a58c6e
2002-10-16 Darin Adler <darin@apple.com>
Fixed anomalies with plugin positioning caused by my switch to
NSViewFocusDidChangeNotification. Turns out that is not sent during
live resize, but we need things to work during live resize.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView start]): Register for changes in the
bounds and frame of all superviews again, instead of using
NSViewFocusDidChangeNotification.
2002-10-16 Richard Williamson <rjw@apple.com>
 
Fixed 2969367. Ensure layout happens before doing check
......
2002-10-16 Darin Adler <darin@apple.com>
Fixed anomalies with plugin positioning caused by my switch to
NSViewFocusDidChangeNotification. Turns out that is not sent during
live resize, but we need things to work during live resize.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView start]): Register for changes in the
bounds and frame of all superviews again, instead of using
NSViewFocusDidChangeNotification.
2002-10-16 Richard Williamson <rjw@apple.com>
 
Fixed 2969367. Ensure layout happens before doing check
......
......@@ -449,8 +449,13 @@ -(void)start
NSWindow *theWindow = [self window];
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
[notificationCenter addObserver:self selector:@selector(viewHasMoved:)
name:NSViewFocusDidChangeNotification object:self];
NSView *view;
for (view = self; view; view = [view superview]) {
[notificationCenter addObserver:self selector:@selector(viewHasMoved:)
name:NSViewFrameDidChangeNotification object:view];
[notificationCenter addObserver:self selector:@selector(viewHasMoved:)
name:NSViewBoundsDidChangeNotification object:view];
}
[notificationCenter addObserver:self selector:@selector(windowWillClose:)
name:NSWindowWillCloseNotification object:theWindow];
[notificationCenter addObserver:self selector:@selector(windowBecameKey:)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment