summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBPreviewController.m5
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
{