Skip to content
Snippets Groups Projects
Commit 378205b5 authored by George Nachman's avatar George Nachman
Browse files

Keep subviews of SessionView top-aligned in tmux integration. Came up in a comment in issue 4933

parent 5121a7a8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -138,6 +138,23 @@ static NSDate* lastResizeDate_;
[self updateScrollViewFrame];
[self updateFindViewFrame];
}
} else {
// Don't resize anything but do keep it all top-aligned.
if (self.showTitle) {
NSRect aRect = [self frame];
CGFloat maxY = aRect.size.height;
if (_showTitle) {
maxY -= _title.frame.size.height;
[_title setFrame:NSMakeRect(0,
maxY,
_title.frame.size.width,
_title.frame.size.height)];
}
NSRect frame = _scrollview.frame;
maxY -= frame.size.height;
frame.origin.y = maxY;
_scrollview.frame = frame;
}
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment