Skip to content
Snippets Groups Projects
Commit 272186ca authored by Samuel Bichsel's avatar Samuel Bichsel
Browse files

Implemented that the Terminal stays at the bottom when resizing/ creating...

Implemented that the Terminal stays at the bottom when resizing/ creating normal window at the bottom
parent 8b982b1f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -227,9 +227,10 @@ NSString *sessionsKey = @"sessions";
NSRect initialFrame;
switch (windowType) {
case WINDOW_TYPE_TOP:
case WINDOW_TYPE_BOTTOM:
case WINDOW_TYPE_BOTTOM:
initialFrame = [screen visibleFrame];
break;
case WINDOW_TYPE_FORCE_FULL_SCREEN:
oldFrame_ = [[self window] frame];
initialFrame = [screen frame];
Loading
Loading
@@ -1309,6 +1310,13 @@ NSString *sessionsKey = @"sessions";
return;
}
 
//Set the origin again to the bottom of screen
if(windowType_ == WINDOW_TYPE_BOTTOM) {
NSPoint origin = [self window].frame.origin;
origin.y = self.screen.frame.origin.y;
[[self window]setFrameOrigin:origin];
}
// Adjust the size of all the sessions.
PtyLog(@"windowDidResize - call repositionWidgets");
[self repositionWidgets];
Loading
Loading
@@ -2798,7 +2806,7 @@ NSString *sessionsKey = @"sessions";
CGFloat heightChange = winSize.height - [[self window] frame].size.height;
frame.size = winSize;
frame.origin.y -= heightChange;
[[[self window] contentView] setAutoresizesSubviews:NO];
if (windowType_ == WINDOW_TYPE_TOP || windowType_ == WINDOW_TYPE_BOTTOM) {
frame.size.width = [[self window] frame].size.width;
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