Hi.

The background around the view inside NSClipView
is not redrawn when the document view becomes 
smaller than the clipview.
The test in [NSClipView viewFrameChanged:] seems wrong.
A version of this method that seems to correct the problem follows.

- (void) viewFrameChanged: (NSNotification*)aNotification
{
  [self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];

  /* If document frame does not completely cover _bounds */
  if (!NSContainsRect([_documentView frame], _bounds))
    {
      /* then fill the area not covered by documentView with background
color */
      [self setNeedsDisplay: YES];
    }

  [_super_view reflectScrolledClipView: self];
}

Benhur Stein

_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to