|
@@ -2059,6 +2059,7 @@
|
|
width: originalSize[0],
|
|
width: originalSize[0],
|
|
height: originalSize[1],
|
|
height: originalSize[1],
|
|
left: newLeft,
|
|
left: newLeft,
|
|
|
|
+ right: "auto",
|
|
top: event.Y - 2
|
|
top: event.Y - 2
|
|
});
|
|
});
|
|
clickDownOffset[0] = clickRatio * originalSize[0];
|
|
clickDownOffset[0] = clickRatio * originalSize[0];
|
|
@@ -2085,6 +2086,7 @@
|
|
$(object).find(".iframecover").hide();
|
|
$(object).find(".iframecover").hide();
|
|
movingWindow = false;
|
|
movingWindow = false;
|
|
|
|
|
|
|
|
+ //Float Window Snapping Logic
|
|
//Check if the window location is drag to the edge of the screen. If yes, toggle half screen fullscreen
|
|
//Check if the window location is drag to the edge of the screen. If yes, toggle half screen fullscreen
|
|
//Not need to check for if max because it must be minimized during drag move
|
|
//Not need to check for if max because it must be minimized during drag move
|
|
var dockMode = false;
|
|
var dockMode = false;
|
|
@@ -2096,6 +2098,7 @@
|
|
width: "50%",
|
|
width: "50%",
|
|
height: "calc(100% - 36px)",
|
|
height: "calc(100% - 36px)",
|
|
left: "0px",
|
|
left: "0px",
|
|
|
|
+ right: "auto",
|
|
top: "0px"
|
|
top: "0px"
|
|
});
|
|
});
|
|
$(object).attr("max", "true");
|
|
$(object).attr("max", "true");
|
|
@@ -2107,7 +2110,8 @@
|
|
$(object).css({
|
|
$(object).css({
|
|
width: "50%",
|
|
width: "50%",
|
|
height: "calc(100% - 36px)",
|
|
height: "calc(100% - 36px)",
|
|
- left: (window.innerWidth / 2) + "px",
|
|
|
|
|
|
+ right: "0px",
|
|
|
|
+ left: "auto",
|
|
top: "0px"
|
|
top: "0px"
|
|
});
|
|
});
|
|
$(object).attr("max", "true");
|
|
$(object).attr("max", "true");
|