Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Tinebase) FF >=105 on linux always opens windows in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweiss committed Oct 4, 2022
1 parent b5f665e commit 35b3190
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tine20/Tinebase/js/ux/PopupWindow.js
Expand Up @@ -215,9 +215,18 @@ Ext.extend(Ext.ux.PopupWindow, Ext.Component, {
this.screenX = _.isNumber(this.screenX) ? this.screenX : ((w / 2) - (width / 2)) + dualScreenLeft;
this.screenY = _.isNumber(this.screenY) ? this.screenY : ((h / 2) - (height / 2)) + dualScreenTop;

return popup = window.open(url, windowName,
const popup = window.open(url, windowName,
'width=' + width + ',height=' + height + ',screenY=' + this.screenY + ',screenX=' + this.screenX +
',directories=no,toolbar=no,location=no,menubar=no,scrollbars=no,status=no,resizable=yes,dependent=no');

// NOTE: FF 105 on linux always opens new windows in fullscreen
// NOTE: in Chrome we don't have innerHeight that early
if (Ext.isGecko && Ext.isLinux) {
const heightOffset = popup.outerHeight - popup.innerHeight;
popup.resizeTo(width, heightOffset+height);
}

return popup;
},

getState : function() {
Expand Down

0 comments on commit 35b3190

Please sign in to comment.