fix:Aways show canvas border

This commit is contained in:
echo 2017-12-15 16:00:06 +08:00
parent 91a738bb26
commit 5ecef0f2c9

View File

@ -2797,7 +2797,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
toolBarWidth, toolBarHeight, toolBarTop, toolBarBorder, toolBarWidth, toolBarHeight, toolBarTop, toolBarBorder,
toolsWidth, toolsHeight,toolsMargin,toolsPMaxwidth, toolsWidth, toolsHeight,toolsMargin,toolsPMaxwidth,
fontSize, margin; fontSize, margin;
var count = 9; var count = 9;
if (!core.flags.enableMDef) count--; if (!core.flags.enableMDef) count--;
if (!core.flags.enableExperience) count--; if (!core.flags.enableExperience) count--;
@ -2934,7 +2934,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
rules:{ rules:{
width: (canvasWidth - SPACE*2) + unit, width: (canvasWidth - SPACE*2) + unit,
height:(canvasWidth - SPACE*2) + unit, height:(canvasWidth - SPACE*2) + unit,
top: SPACE + unit, top: (canvasTop + SPACE) + unit,
right: SPACE + unit, right: SPACE + unit,
} }
}, },