mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +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
249fa82991
commit
7f736e9a2b
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>
|
||||
|
||||
* Source/NSPrintOperation.m
|
||||
|
@ -5,11 +10,11 @@
|
|||
-_printOperationDidRun:returnCode:contextInfo:) Only set and use
|
||||
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.
|
||||
|
||||
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.
|
||||
* 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
|
||||
{
|
||||
NSPoint destPoint = aRect.origin;
|
||||
NSPoint destPoint;
|
||||
|
||||
aRect = NSIntersectionRect(aRect, _bounds); // Don't copy stuff outside.
|
||||
destPoint = aRect.origin;
|
||||
destPoint.x -= delta.width;
|
||||
destPoint.y -= delta.height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue