diff options
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 974173d52..be881dd73 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -91,11 +91,8 @@ typedef enum ViewMode : NSUInteger { if (centerString.length) { NSPoint center = NSPointFromString(centerString); - NSRect frame = self.window.frame; - [self.window setFrameOrigin:NSMakePoint(center.x - floor(frame.size.width / 2), - center.y - floor(frame.size.height / 2))]; - self.windowCenterPoint = center; + [self resizeWindowForViewSize:NSMakeSize(MIN_WIDTH, MIN_HEIGHT) animate:NO]; } else { |