Revision: 15274
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15274&view=rev
Author: hofman
Date: 2009-05-06 10:58:56 +0000 (Wed, 06 May 2009)
Log Message:
-----------
send size notification from textview after zooming, this fixes layout update
problems
Modified Paths:
--------------
trunk/bibdesk/BDSKZoomableTextView.m
Modified: trunk/bibdesk/BDSKZoomableTextView.m
===================================================================
--- trunk/bibdesk/BDSKZoomableTextView.m 2009-05-06 04:58:43 UTC (rev
15273)
+++ trunk/bibdesk/BDSKZoomableTextView.m 2009-05-06 10:58:56 UTC (rev
15274)
@@ -193,10 +193,10 @@
scaleFactor = newScaleFactor;
- [self scaleUnitSquareToSize:[self convertSize:NSMakeSize(1.0, 1.0)
fromView:nil]];
- [self scaleUnitSquareToSize:NSMakeSize(scaleFactor, scaleFactor)];
+ [self scaleUnitSquareToSize:[self convertSize:NSMakeSize(scaleFactor,
scaleFactor) fromView:nil]];
[self sizeToFit];
- [self setScrollPositionAsPercentage:scrollPoint]; // maintain
approximate scroll position
+ [[NSNotificationCenter defaultCenter]
postNotificationName:NSViewFrameDidChangeNotification object:self];
+ [self setScrollPositionAsPercentage:scrollPoint]; // maintain
approximate scroll position
[[self superview] setNeedsDisplay:YES];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit