Revision: 5815
http://skim-app.svn.sourceforge.net/skim-app/?rev=5815&view=rev
Author: hofman
Date: 2009-09-26 20:53:14 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
make generic note edit window and text field vertically resizable
Modified Paths:
--------------
trunk/SKNoteWindowController.m
Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m 2009-09-25 16:29:44 UTC (rev 5814)
+++ trunk/SKNoteWindowController.m 2009-09-26 20:53:14 UTC (rev 5815)
@@ -176,15 +176,20 @@
[imageView unbind:@"value"];
[imageView setCell:cell];
+ [textView unbind:@"attributedString"];
+ [[textView enclosingScrollView] removeFromSuperview];
+
NSSize minimumSize = [[self window] minSize];
- NSSize maximumSize = [[self window] maxSize];
frame = [[[self window] contentView] frame];
frame.size.height = NSHeight([statusBar frame]) +
NSHeight([gradientView frame]);
frame = [[self window] frameRectForContentRect:frame];
- minimumSize.height = maximumSize.height = NSHeight(frame);
+ minimumSize.height = NSHeight(frame);
[[self window] setMinSize:minimumSize];
- [[self window] setMaxSize:maximumSize];
[[self window] setFrame:frame display:NO];
+
+ [gradientView setAutoresizingMask:NSViewWidthSizable |
NSViewHeightSizable];
+ [textField setAutoresizingMask:NSViewWidthSizable |
NSViewHeightSizable];
+ [[textField cell] setWraps:YES];
}
[statusBar setLeftAction:@selector(statusBarClicked:)];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit