We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ddaf0 commit bc17f18Copy full SHA for bc17f18
1 file changed
src/phoenix/shell.js
@@ -892,10 +892,15 @@ Phoenix.app = {
892
if(window.__TAURI__) {
893
const currentWindow = window.__TAURI__.window.getCurrent();
894
const outerSize = await currentWindow.outerSize();
895
+ const innerSize = await currentWindow.innerSize();
896
+ let size = outerSize;
897
+ if(Phoenix.platform !== 'mac'){
898
+ size = innerSize;
899
+ }
900
const scaleFactor = await currentWindow.scaleFactor();
901
return {
- width: Math.round(outerSize.width / scaleFactor),
- height: Math.round(outerSize.height / scaleFactor)
902
+ width: Math.round(size.width / scaleFactor),
903
+ height: Math.round(size.height / scaleFactor)
904
};
905
}
906
if(window.__ELECTRON__) {
0 commit comments