From 854e9605d89f7fd99a080e729204b1566be2d227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Lind=C3=A9n?= Date: Tue, 13 Nov 2018 22:08:52 +0100 Subject: [PATCH] Never remove coordinates panel (above grid) as opposed to only showing it on hover. --- css/guiFull.css | 3 ++- src/modelViews/ModelView_Canvas_Default.js | 9 --------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/css/guiFull.css b/css/guiFull.css index fe5d223..7043dc9 100644 --- a/css/guiFull.css +++ b/css/guiFull.css @@ -524,8 +524,9 @@ body { #workarea canvas { position: absolute; - top: 50px; + top: 37px; left: 0; + padding: 3px; } #workarea canvas.modelView { diff --git a/src/modelViews/ModelView_Canvas_Default.js b/src/modelViews/ModelView_Canvas_Default.js index a1ed4f3..a2129a6 100644 --- a/src/modelViews/ModelView_Canvas_Default.js +++ b/src/modelViews/ModelView_Canvas_Default.js @@ -148,7 +148,6 @@ this.$controls = $('#'+this.containerDomId+' .controls'); - this.$controls.hide(); this.$controls.html(this.getControlsHtml()); this.$domObject = $('#'+this.elementId); @@ -167,15 +166,7 @@ if (this.noContextMenu == true) this.disableContextMenu(); $(window).bind('resize', {t: this}, function(e){e.data.t.windowResize();}); - this.$controls.parent().bind('mouseenter', {t: this}, function(e) { - e.data.t.$controls.show(); - }); - this.$controls.parent().bind('mouseleave', {t: this}, function(e) { - e.data.t.$controls.hide(); - }); - - this.construct(); this.constructed = true; this.drawAllBlocks();