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

This commit is contained in:
jelveh
2025-02-15 13:02:57 -08:00
parent 870e4aa938
commit fe5f7cb878
+9 -1
View File
@@ -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',
});
}