Revision: 18002
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18002&view=rev
Author: hofman
Date: 2011-07-08 11:18:50 +0000 (Fri, 08 Jul 2011)
Log Message:
-----------
force setting full pref window frame including size, otherwise we only restore
the bottom position, but we need the top
Modified Paths:
--------------
trunk/bibdesk/BDSKPreferenceController.m
Modified: trunk/bibdesk/BDSKPreferenceController.m
===================================================================
--- trunk/bibdesk/BDSKPreferenceController.m 2011-07-08 10:27:07 UTC (rev
18001)
+++ trunk/bibdesk/BDSKPreferenceController.m 2011-07-08 11:18:50 UTC (rev
18002)
@@ -125,7 +125,9 @@
[self setupToolbar];
[[self window] setShowsToolbarButton:NO];
+ // we need to do this because we want to restore the top position,
otherwise the bottom position will be restored
[self setWindowFrameAutosaveName:BDSKPreferencesWindowFrameAutosaveName];
+ [[self window] setFrameUsingName:BDSKPreferencesWindowFrameAutosaveName
force:YES];
[[self window] setTitle:[self defaultWindowTitle]];
@@ -138,7 +140,6 @@
width = fmax(width, NSWidth([[pane view] frame]));
NSRect frame = [[self window] frame];
frame.size.width = width;
- frame.size.height -= NSHeight([[[self window] contentView] frame]) -
NSHeight([iconView frame]);
[[self window] setFrame:frame display:NO];
frame = [iconView frame];
frame.size.width = width;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit