Revision: 2668
http://skim-app.svn.sourceforge.net/skim-app/?rev=2668&view=rev
Author: hofman
Date: 2007-08-16 06:36:14 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
Align navigation window vertically with screen as well, as the bottom of the
screen may not be at zero.
Modified Paths:
--------------
trunk/SKNavigationWindow.m
Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m 2007-08-16 11:22:28 UTC (rev 2667)
+++ trunk/SKNavigationWindow.m 2007-08-16 13:36:14 UTC (rev 2668)
@@ -54,7 +54,7 @@
- (id)initWithPDFView:(PDFView *)pdfView {
NSScreen *screen = [[pdfView window] screen];
float width = 4 * BUTTON_WIDTH + 2 * SEP_WIDTH + 2 * MARGIN;
- NSRect contentRect = NSMakeRect(NSMidX([screen frame]) - 0.5 * width,
OFFSET, width, BUTTON_WIDTH + 2 * MARGIN);
+ NSRect contentRect = NSMakeRect(NSMidX([screen frame]) - 0.5 * width,
NSMinY([screen frame]) + OFFSET, width, BUTTON_WIDTH + 2 * MARGIN);
if (self = [super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO
screen:screen]) {
NSWindowController *controller = [[pdfView window] windowController];
@@ -130,6 +130,7 @@
- (void)moveToScreen:(NSScreen *)screen {
NSRect winFrame = [self frame];
winFrame.origin.x = NSMidX([screen frame]) - 0.5 * NSWidth(winFrame);
+ winFrame.origin.y = NSMinY([screen frame]) + OFFSET;
[self setFrame:winFrame display:NO];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit