mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Implemented noteNumberOfRowsChanged
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6340 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
202ce05956
commit
eea1460276
1 changed files with 15 additions and 5 deletions
|
@ -801,12 +801,22 @@ byExtendingSelection: (BOOL) flag
|
|||
|
||||
- (void) noteNumberOfRowsChanged
|
||||
{
|
||||
// TODO
|
||||
NSRect superviewBounds; // Get this *after* [self setFrame:]
|
||||
|
||||
_numberOfRows = [_dataSource numberOfRowsInTableView: self];
|
||||
// _table_height = _numberOfRows * _rowHeight;
|
||||
// TODO: Update scrollers, but do *not* mark us as needing
|
||||
// redisplay. Unless the number of entries is less than the
|
||||
// maximal number of visible entries
|
||||
[self setFrame: NSMakeRect (_frame.origin.x,
|
||||
_frame.origin.y,
|
||||
_frame.size.width,
|
||||
(_numberOfRows * _rowHeight) + 1)];
|
||||
|
||||
/* If we are shorter in height than the enclosing clipview, we
|
||||
should redraw us now. */
|
||||
superviewBounds = [_super_view bounds];
|
||||
if ((superviewBounds.origin.x <= _frame.origin.x)
|
||||
&& (NSMaxY (superviewBounds) >= NSMaxY (_frame)))
|
||||
{
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) tile
|
||||
|
|
Loading…
Reference in a new issue