jspreadsheet / pro

Jspreadsheet Pro | The javascript spreadsheet
https://jspreadsheet.com/
15 stars 1 forks source link

Custom Toolbar Extra Length #303

Closed jramirez-struc closed 10 months ago

jramirez-struc commented 10 months ago

Hello again!

For this issue, I noticed that when one adds more elements to the current toolbar items, it by default shows a "longer than the worksheet" toolbar, which isn't right. As shown in the video below, when rendering the Spreadsheet it shows a long toolbar, and after clicking on the cells/interacting with the Spreadsheet, it click by click returns to its desired length. Is there a way to override this, to always render the toolbar to be exactly as wide as the Worksheet is from the beginning?

Again, thanks in advance.

https://github.com/jspreadsheet/pro/assets/147494385/4975ebac-8131-47ca-9c91-c7bd626dca29

hodeware commented 10 months ago

The toolbar with the limits of the spreadsheet should be the default behavior, see this example: https://jsfiddle.net/rL0djg72/6/

The

used to the create the jspreadsheet should be display: inline-block or inline-flex