Skip to content

Commit

Permalink
fix: hide formulabar-row by default
Browse files Browse the repository at this point in the history
Signed-off-by: Rashesh <[email protected]>
Change-Id: I111298ea12d668f5dc9aa4dea8e859b840acbb37
  • Loading branch information
Rash419 committed Sep 26, 2024
1 parent 8646f1a commit 8ff247a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser/html/cool.html.m4
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ m4_ifelse(MOBILEAPP,[true],
</label>
</div>
</div>
<div id="formulabar-row">
<div id="formulabar-row" class="hidden">
<div id="addressInput"></div>
<div id="formulabar"></div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions browser/src/control/Control.UIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ L.Control.UIManager = L.Control.extend({

if (docType === 'spreadsheet') {
this.sheetsBar = JSDialog.SheetsBar(this.map, isDesktop || window.mode.isTablet());

let formulabarRow = document.getElementById('formulabar-row');
formulabarRow.classList.remove('hidden');
this.map.formulabar = JSDialog.FormulaBar(this.map);
this.map.addressInputField = JSDialog.AddressInputField(this.map);
$('#toolbar-wrapper').addClass('spreadsheet');
Expand Down

0 comments on commit 8ff247a

Please sign in to comment.