From 5ecef0f2c94f611bc3e6faee06b615f7ddb0c155 Mon Sep 17 00:00:00 2001 From: echo Date: Fri, 15 Dec 2017 16:00:06 +0800 Subject: [PATCH] fix:Aways show canvas border --- libs/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core.js b/libs/core.js index 75e03a49..bac51975 100644 --- a/libs/core.js +++ b/libs/core.js @@ -2797,7 +2797,7 @@ core.prototype.resize = function(clientWidth, clientHeight) { toolBarWidth, toolBarHeight, toolBarTop, toolBarBorder, toolsWidth, toolsHeight,toolsMargin,toolsPMaxwidth, fontSize, margin; - + var count = 9; if (!core.flags.enableMDef) count--; if (!core.flags.enableExperience) count--; @@ -2934,7 +2934,7 @@ core.prototype.resize = function(clientWidth, clientHeight) { rules:{ width: (canvasWidth - SPACE*2) + unit, height:(canvasWidth - SPACE*2) + unit, - top: SPACE + unit, + top: (canvasTop + SPACE) + unit, right: SPACE + unit, } },