Commit c802188c authored by Oleg Korshul's avatar Oleg Korshul

mobile version (overlay bugs & full support retina check)

parent 059e56c8
...@@ -45,10 +45,6 @@ var TRACK_ADJUSTMENT_SIZE = 10; ...@@ -45,10 +45,6 @@ var TRACK_ADJUSTMENT_SIZE = 10;
var TRACK_WRAPPOINTS_SIZE = 6; var TRACK_WRAPPOINTS_SIZE = 6;
var IMAGE_ROTATE_TRACK_W = 21; var IMAGE_ROTATE_TRACK_W = 21;
if (AscBrowser.isRetina && AscBrowser.isMobile) {
TRACK_DISTANCE_ROTATE <<= 1;
}
var bIsUseImageRotateTrack = true; var bIsUseImageRotateTrack = true;
if (bIsUseImageRotateTrack) if (bIsUseImageRotateTrack)
{ {
......
...@@ -331,6 +331,9 @@ ...@@ -331,6 +331,9 @@
var xPos = x ? x : parseInt(oTarget.style.left); var xPos = x ? x : parseInt(oTarget.style.left);
var yPos = (y ? y : parseInt(oTarget.style.top)) + parseInt(oTarget.style.height); var yPos = (y ? y : parseInt(oTarget.style.top)) + parseInt(oTarget.style.height);
if (AscCommon.AscBrowser.isSafari && AscCommon.AscBrowser.isMobile)
xPos = -100;
if (!this.isDebug && !this.isSystem) if (!this.isDebug && !this.isSystem)
{ {
this.HtmlDiv.style.left = xPos + this.FixedPosCheckElementX + "px"; this.HtmlDiv.style.left = xPos + this.FixedPosCheckElementX + "px";
...@@ -451,6 +454,9 @@ ...@@ -451,6 +454,9 @@
this.debugTexBoxMaxH = 50; this.debugTexBoxMaxH = 50;
} }
if (AscCommon.AscBrowser.isSafari && AscCommon.AscBrowser.isMobile)
_left = -100;
this.HtmlDiv.style.left = _left + "px"; this.HtmlDiv.style.left = _left + "px";
this.HtmlDiv.style.top = _top + "px"; this.HtmlDiv.style.top = _top + "px";
......
...@@ -563,6 +563,7 @@ function CEditorPage(api) ...@@ -563,6 +563,7 @@ function CEditorPage(api)
else else
{ {
this.bIsRetinaSupport = false; this.bIsRetinaSupport = false;
this.m_oOverlayApi.IsRetina = this.bIsRetinaSupport;
} }
if (old != this.bIsRetinaSupport) if (old != this.bIsRetinaSupport)
......
...@@ -507,6 +507,7 @@ function CEditorPage(api) ...@@ -507,6 +507,7 @@ function CEditorPage(api)
else else
{ {
this.bIsRetinaSupport = false; this.bIsRetinaSupport = false;
this.m_oOverlayApi.IsRetina = this.bIsRetinaSupport;
} }
if (old != this.bIsRetinaSupport) if (old != this.bIsRetinaSupport)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment