Skip to content

Commit c87089e

Browse files
committed
fix: linux inconsistencies of drag drop window
1 parent c0d7975 commit c87089e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils/DragAndDrop.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ define(function (require, exports, module) {
211211
const currentWindow = window.__TAURI__.window.getCurrent();
212212
const newSize = await currentWindow.innerSize();
213213
const newPosition = await currentWindow.innerPosition();
214-
newPosition.y = newPosition.y + 28;
215-
newSize.height = newSize.height - 28;
214+
if(Phoenix.platform === "mac") {
215+
newPosition.y = newPosition.y + 28;
216+
newSize.height = newSize.height - 28;
217+
}
216218
return {newSize, newPosition};
217219
}
218220

0 commit comments

Comments
 (0)