From 78ba26d3a1f0e55052ac47e933b2db3f149337f8 Mon Sep 17 00:00:00 2001 From: Ernesto Rivera Date: Tue, 3 Oct 2017 14:27:37 -0400 Subject: [PATCH] Fix minimized mode --- Source/PTEDashboard.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/PTEDashboard.m b/Source/PTEDashboard.m index 601fd59..ea8342f 100644 --- a/Source/PTEDashboard.m +++ b/Source/PTEDashboard.m @@ -254,13 +254,13 @@ - (void)setWindowHeight:(CGFloat)height tableFrame.origin.x += 20.0; tableFrame.size.width -= 20.0; _consoleTableView.frame = tableFrame; - _consoleTableView.contentOffset = CGPointMake(0.0, - MAX(_consoleTableView.contentOffset.y, - _consoleTableView.tableHeaderView.bounds.size.height)); self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, _screenSize.width - 40.0, height); + _consoleTableView.contentOffset = CGPointMake(0.0, + MAX(_consoleTableView.contentOffset.y, + _consoleTableView.tableHeaderView.bounds.size.height)); } // Change keyWindow to enable keyboard input