hide scrollers when autoresizing

This commit is contained in:
Mitchell Livingston
2006-10-13 15:21:40 +00:00
parent c055f25962
commit d76e205e76
+4
View File
@@ -2303,7 +2303,11 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
- (void) setWindowSizeToFit
{
if ([fDefaults boolForKey: @"AutoSize"])
{
[fScrollView setHasVerticalScroller: NO];
[fWindow setFrame: [self sizedWindowFrame] display: YES animate: YES];
[fScrollView setHasVerticalScroller: YES];
}
}
- (NSRect) sizedWindowFrame