The R Project SVN R-packages

Rev

Rev 1256 | Rev 5708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1256 Rev 1481
Line 140... Line 140...
140
		NSRect rl = [listDataSource frameOfCellAtColumn:0 row:1];
140
		NSRect rl = [listDataSource frameOfCellAtColumn:0 row:1];
141
 
141
 
142
		float nonTableH = rw.size.height - rf.size.height;
142
		float nonTableH = rw.size.height - rf.size.height;
143
		float showCount = ((float)((count>20)?20:count));
143
		float showCount = ((float)((count>20)?20:count));
144
		
144
		
-
 
145
		if (count==1) rl.origin.y = rr.origin.y + rr.size.height + 1.0; // rl will be bogus if there is just 1 entry, so we need to fake it
-
 
146
		
145
		rw.size.height = nonTableH + rr.origin.y + (rl.origin.y-rr.origin.y)*showCount - 1.0;
147
		rw.size.height = nonTableH + rr.origin.y + (rl.origin.y-rr.origin.y)*showCount - 1.0;
146
 
148
 
147
		[[self window] setFrame:rw display:YES];
149
		[[self window] setFrame:rw display:YES];
148
	}
150
	}
149
	[self show];
151
	[self show];