mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
Fixed: frame/bounds change notification was sent unconditionally.
Previously, calling setPostsFrameChangedNotifications:YES or setPostsBoundsChangedNotifications:YES would immediately result in the notification being sent. Cocoa will only send in this context if: - setPosts[Frame/Bounds]ChangedNotifications:NO was called. - The frame/bounds changed between that call and the call to setPosts[Frame/Bounds]ChangedNotifications:YES. We are currently not tracking pending changes, so this commit removes the sending of the notification completely in those methods. Fixes #1076
This commit is contained in:
1 parent
6c80d1f883
commit
445045565b
1 file changed
-6
@@ -1994,9 +1994,6 @@ setFrameOrigin:
|
||||
return;
|
||||
|
||||
_postsFrameChangedNotifications = shouldPostFrameChangedNotifications;
|
||||
|
||||
if (_postsFrameChangedNotifications)
|
||||
[CachedNotificationCenter postNotificationName:CPViewFrameDidChangeNotification object:self];
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -2027,9 +2024,6 @@ setBoundsOrigin:
|
||||
return;
|
||||
|
||||
_postsBoundsChangedNotifications = shouldPostBoundsChangedNotifications;
|
||||
|
||||
if (_postsBoundsChangedNotifications)
|
||||
[CachedNotificationCenter postNotificationName:CPViewBoundsDidChangeNotification object:self];
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user