diff --git a/src/controllers/resize.js b/src/controllers/resize.js index 4d41356..4f9b4b1 100644 --- a/src/controllers/resize.js +++ b/src/controllers/resize.js @@ -117,7 +117,7 @@ export default function luckysheetsizeauto(isRefreshCanvas=true) { const $t = $(this)[0]; const $container = $("#luckysheet-wa-editor")[0]; - $container.appendChild(document.createTextNode(" ")); + // $container.appendChild(document.createTextNode(" ")); $container.appendChild($t); }); @@ -440,7 +440,6 @@ export function menuToolBarWidth() { return -1; } } - toobarElements.forEach((curr,index,arr)=>{ arr[index] = curr.ele; diff --git a/src/controllers/toolbar.js b/src/controllers/toolbar.js index e72c578..edbd095 100644 --- a/src/controllers/toolbar.js +++ b/src/controllers/toolbar.js @@ -846,10 +846,10 @@ export function createToolbarHtml() { let i = 0; showtoolbarConfig.forEach(function(key, i) { if (key === '|') { - const nameKeys = defaultToolbar[i - 1] + const nameKeys = showtoolbarConfig[i - 1] if(nameKeys !== '|') { buttonHTML.push( - `
` + `` ); } } else { @@ -893,7 +893,7 @@ export function createToolbarHtml() { const nameKeys = defaultToolbar[i - 1] if(nameKeys !== '|') { buttonHTML.push( - `` + `` ); } } else {