Revision: 7277
http://skim-app.svn.sourceforge.net/skim-app/?rev=7277&view=rev
Author: hofman
Date: 2011-06-17 21:01:57 +0000 (Fri, 17 Jun 2011)
Log Message:
-----------
fix offset of find bar when hiding
Modified Paths:
--------------
trunk/SKFindController.m
Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m 2011-06-17 11:34:44 UTC (rev 7276)
+++ trunk/SKFindController.m 2011-06-17 21:01:57 UTC (rev 7277)
@@ -143,8 +143,13 @@
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(windowDidBecomeKey:) name:NSWindowDidBecomeKeyNotification
object:[[self view] window]];
[self windowDidBecomeKey:nil];
- } else if ([[self view] window]) {
- [[NSNotificationCenter defaultCenter] removeObserver:self
name:NSWindowDidBecomeKeyNotification object:[[self view] window]];
+ } else {
+ if ([contentView isFlipped])
+ barRect.origin.y -= barHeight;
+ else
+ barRect.origin.y = NSMaxY([contentView bounds]) -
barHeight;
+ if ([[self view] window])
+ [[NSNotificationCenter defaultCenter] removeObserver:self
name:NSWindowDidBecomeKeyNotification object:[[self view] window]];
}
viewFrame.size.height += barHeight;
if ([contentView isFlipped]) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit