Removed on pixel at the top of a sheet window

This commit is contained in:
Alexandre Wilhelm committed 2013-05-06 15:28:49 -07:00
1 parent 3357162660
commit e22d6e0217
1 file changed
+2 -4
+2 -4
View File
@@ -2755,20 +2755,18 @@ CPTexturedBackgroundWindowMask
}
// The sheet starts hidden just above the top of a clip rect
// TODO : Make properly for the -1 in endY
var sheetFrame = [sheet frame],
sheetShadowFrame = sheet._hasShadow ? [sheet._shadowView frame] : sheetFrame,
frame = [self frame],
originX = frame.origin.x + FLOOR((frame.size.width - sheetFrame.size.width) / 2),
startFrame = CGRectMake(originX, -sheetShadowFrame.size.height, sheetFrame.size.width, sheetFrame.size.height),
endY = [_windowView bodyOffset] - [[self contentView] frame].origin.y,
endY = -1 + [_windowView bodyOffset] - [[self contentView] frame].origin.y,
endFrame = CGRectMake(originX, endY, sheetFrame.size.width, sheetFrame.size.height);
if (_toolbar && [_windowView showsToolbar] && [self isFullPlatformWindow])
{
originX += [[_toolbar _toolbarView] frameSize].height;
endY += [[_toolbar _toolbarView] frameSize].height;
startFrame = CGRectMake(originX, -sheetShadowFrame.size.height, sheetFrame.size.width, sheetFrame.size.height);
endFrame = CGRectMake(originX, endY, sheetFrame.size.width, sheetFrame.size.height);
}