diff --git a/_server/css/editor.css b/_server/css/editor.css index 3ad43d05..8126b33c 100644 --- a/_server/css/editor.css +++ b/_server/css/editor.css @@ -254,13 +254,6 @@ body { overflow: auto; } -#edata{ - position: absolute; - z-index:0; - left: 0; - top: 0; -} - #iconImages { z-index: 0; overflow: hidden; diff --git a/_server/css/editor_mobile.css b/_server/css/editor_mobile.css index 0aba4685..7bdf8953 100644 --- a/_server/css/editor_mobile.css +++ b/_server/css/editor_mobile.css @@ -238,13 +238,6 @@ body { overflow: auto; } -#edata{ - position: absolute; - z-index:0; - left: 0; - top: 0; -} - #iconImages { z-index: 0; overflow: hidden; diff --git a/_server/editor.js b/_server/editor.js index 884efd3c..649d9292 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -415,8 +415,10 @@ editor.prototype.drawInitData = function (icons) { var fullWidth = ~~(sumWidth * ratio); var fullHeight = ~~(maxHeight * ratio); + /* if (fullWidth > edata.width) edata.style.width = (edata.width = fullWidth) / ratio + 'px'; edata.style.height = (edata.height = fullHeight) / ratio + 'px'; + */ iconImages.style.width = (iconImages.width = fullWidth) / ratio + 'px'; iconImages.style.height = (iconImages.height = fullHeight) / ratio + 'px'; var dc = {drawImage:function(){ @@ -644,6 +646,7 @@ editor.prototype.listen = function () { var iconLib=document.getElementById('iconLib'); iconLib.onmousedown = function (e) { + console.log("iconLib: ("+e.clientX+","+e.clientY+")"); e.stopPropagation(); } @@ -957,7 +960,7 @@ editor.prototype.listen = function () { } var dataSelection = document.getElementById('dataSelection'); - edata.onmousedown = function (e) { + iconLib.onmousedown = function (e) { e.stopPropagation(); var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft; var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; diff --git a/editor-mobile.html b/editor-mobile.html index a0974e62..3a05e8e2 100644 --- a/editor-mobile.html +++ b/editor-mobile.html @@ -258,7 +258,6 @@