Commit c55304c4 authored by Oleg Korshul's avatar Oleg Korshul

cells mobile (second version)

parent 3e807a06
...@@ -191,6 +191,7 @@ ...@@ -191,6 +191,7 @@
if (null != this.element) { if (null != this.element) {
t.canvasOuter = document.createElement('div'); t.canvasOuter = document.createElement('div');
t.canvasOuter.id = "ce-canvas-outer"; t.canvasOuter.id = "ce-canvas-outer";
t.canvasOuter.style.position = "absolute";
t.canvasOuter.style.display = "none"; t.canvasOuter.style.display = "none";
t.canvasOuter.style.zIndex = z; t.canvasOuter.style.zIndex = z;
var innerHTML = '<canvas id="ce-canvas" style="z-index: ' + (z + 1) + '"></canvas>'; var innerHTML = '<canvas id="ce-canvas" style="z-index: ' + (z + 1) + '"></canvas>';
......
...@@ -55,11 +55,14 @@ function (window, undefined) ...@@ -55,11 +55,14 @@ function (window, undefined)
CMobileDelegateEditorCell.prototype.ConvertCoordsToCursor = function(x, y, page, isGlobal) CMobileDelegateEditorCell.prototype.ConvertCoordsToCursor = function(x, y, page, isGlobal)
{ {
return {X: 0, Y: 0, Error: false}; var _res = this.WB.ConvertLogicToXY(x, y);
var _point = {X: _res.X, Y: _res.Y, Page: 0, DrawPage: 0};
return _point;
}; };
CMobileDelegateEditorCell.prototype.ConvertCoordsFromCursor = function(x, y) CMobileDelegateEditorCell.prototype.ConvertCoordsFromCursor = function(x, y)
{ {
var _point = {X: 0, Y: 0, Page: 0, DrawPage: 0}; var _res = this.WB.ConvertXYToLogic(x, y);
var _point = {X: _res.X, Y: _res.Y, Page: 0, DrawPage: 0};
return _point; return _point;
}; };
CMobileDelegateEditorCell.prototype.GetZoomFit = function() CMobileDelegateEditorCell.prototype.GetZoomFit = function()
......
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