mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-20 04:05:58 +00:00
Fix window height when maximized in full page mode
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
This commit is contained in:
@@ -3289,12 +3289,20 @@ window.scale_window = (el_window)=>{
|
||||
// shrink icon
|
||||
$(el_window).find('.window-scale-btn>img').attr('src', window.icons['scale-down-3.svg']);
|
||||
|
||||
// calculate height
|
||||
let height;
|
||||
if(window.is_fullpage_mode){
|
||||
height = `calc(100% - ${ window.toolbar_height}px)`;
|
||||
}else{
|
||||
height = `calc(100% - ${window.taskbar_height + window.toolbar_height + 6}px)`;
|
||||
}
|
||||
|
||||
// set new size and position
|
||||
$(el_window).css({
|
||||
'top': window.toolbar_height+'px',
|
||||
'left': '0',
|
||||
'width': '100%',
|
||||
'height': `calc(100% - ${window.taskbar_height + window.toolbar_height + 6}px)`,
|
||||
'height': height,
|
||||
'transform': 'none',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user