diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js index d5cd95051..1c666be88 100644 --- a/loleaflet/js/toolbar.js +++ b/loleaflet/js/toolbar.js @@ -2123,7 +2123,7 @@ function onUpdatePermission(e) { } } - var spreadsheetButtons = ['firstrecord', 'prevrecord', 'nextrecord', 'lastrecord', 'insertsheet']; + var spreadsheetButtons = ['insertsheet']; var formulaBarButtons = ['sum', 'function']; var presentationButtons = ['insertpage', 'duplicatepage', 'deletepage']; var toolbarDownButtons = ['next', 'prev']; @@ -2167,7 +2167,6 @@ function onUpdatePermission(e) { case 'spreadsheet': $('#document-container').css('bottom', '68px'); // FIXME this and spreadsheet-row-column-frame are supposed to be the same, but are not $('#spreadsheet-row-column-frame').css('bottom', '65px'); - $('#spreadsheet-tabs-container').show(); $('#spreadsheet-toolbar').show(); break; case 'presentation': @@ -2215,10 +2214,9 @@ function onUpdatePermission(e) { $('#document-container').css('bottom', '0'); break; case 'spreadsheet': - $('#document-container').css('bottom', '0'); + $('#document-container').css('bottom', '35px'); $('#spreadsheet-row-column-frame').css('bottom', '0'); - $('#spreadsheet-tabs-container').hide(); - $('#spreadsheet-toolbar').hide(); + $('#spreadsheet-toolbar').show(); break; case 'presentation': $('#document-container').css('bottom', '0'); diff --git a/loleaflet/src/control/Control.Tabs.js b/loleaflet/src/control/Control.Tabs.js index 0d7a3a3d5..6c9b8ae73 100644 --- a/loleaflet/src/control/Control.Tabs.js +++ b/loleaflet/src/control/Control.Tabs.js @@ -21,6 +21,15 @@ L.Control.Tabs = L.Control.extend({ setTimeout(function() { $('.spreadsheet-tab').contextMenu(e.perm === 'edit'); }, 1000); + + if (e.perm === 'edit') { + $('.spreadsheet-tabs-container').css('bottom', '33px'); + $('#spreadsheet-toolbar').css('bottom', '33px'); + } + else { + $('.spreadsheet-tabs-container').css('bottom', '0px'); + $('#spreadsheet-toolbar').css('bottom', '0px'); + } }, _initialize: function () {