mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 16:40:50 +00:00
Restrict scrolled rectangle to the bounds of the view
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25203 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f467c5e7f
commit
31694e8ec8
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-05-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSView.m: ([scrollRect:by:]) restrict scrolled rectangle to
|
||||||
|
the bounds of the view.
|
||||||
|
|
||||||
2007-05-23 Fred Kiefer <FredKiefer@gmx.de>
|
2007-05-23 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSPrintOperation.m
|
* Source/NSPrintOperation.m
|
||||||
|
@ -5,11 +10,11 @@
|
||||||
-_printOperationDidRun:returnCode:contextInfo:) Only set and use
|
-_printOperationDidRun:returnCode:contextInfo:) Only set and use
|
||||||
GSModalRunDelegate and GSModalRunSelector values when not nil.
|
GSModalRunDelegate and GSModalRunSelector values when not nil.
|
||||||
|
|
||||||
2007-05-17 Riccardo Frith-Macdonald <rfm@gnu.org>
|
2007-05-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSFont.m: Revert incorrect matrix equality test change.
|
* Source/NSFont.m: Revert incorrect matrix equality test change.
|
||||||
|
|
||||||
2007-05-16 Riccardo Frith-Macdonald <rfm@gnu.org>
|
2007-05-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Headers/AppKit/NSFontDescriptor.h: tidied indentation etc.
|
* Headers/AppKit/NSFontDescriptor.h: tidied indentation etc.
|
||||||
* Source/NSFont.m: Tidied for coding standards. Fixed memory leak.
|
* Source/NSFont.m: Tidied for coding standards. Fixed memory leak.
|
||||||
|
|
|
@ -2684,8 +2684,10 @@ in the main thread.
|
||||||
*/
|
*/
|
||||||
- (void) scrollRect: (NSRect)aRect by: (NSSize)delta
|
- (void) scrollRect: (NSRect)aRect by: (NSSize)delta
|
||||||
{
|
{
|
||||||
NSPoint destPoint = aRect.origin;
|
NSPoint destPoint;
|
||||||
|
|
||||||
|
aRect = NSIntersectionRect(aRect, _bounds); // Don't copy stuff outside.
|
||||||
|
destPoint = aRect.origin;
|
||||||
destPoint.x -= delta.width;
|
destPoint.x -= delta.width;
|
||||||
destPoint.y -= delta.height;
|
destPoint.y -= delta.height;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue