mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:40:48 +00:00
Fix for document view more little than us - fill the remaining space
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6339 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf9ba1592f
commit
202ce05956
1 changed files with 15 additions and 0 deletions
|
@ -290,7 +290,22 @@
|
||||||
|
|
||||||
- (void) viewFrameChanged: (NSNotification*)aNotification
|
- (void) viewFrameChanged: (NSNotification*)aNotification
|
||||||
{
|
{
|
||||||
|
NSRect documentFrame = [_documentView frame];
|
||||||
|
|
||||||
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||||
|
|
||||||
|
/* If _bounds completely encloses (touching allowed) documentFrame */
|
||||||
|
if ((_bounds.origin.x <= documentFrame.origin.x)
|
||||||
|
&& (_bounds.origin.y <= documentFrame.origin.y)
|
||||||
|
&& (_bounds.origin.x + _bounds.size.width
|
||||||
|
>= documentFrame.origin.x + documentFrame.size.width)
|
||||||
|
&& (_bounds.origin.y + _bounds.size.height
|
||||||
|
>= documentFrame.origin.y + documentFrame.size.height))
|
||||||
|
{
|
||||||
|
/* then fill the area not covered by documentView with background color */
|
||||||
|
[self setNeedsDisplay: YES];
|
||||||
|
}
|
||||||
|
|
||||||
[_super_view reflectScrolledClipView: self];
|
[_super_view reflectScrolledClipView: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue