myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
14.16k stars 1.7k forks source link

Button tooltips sometimes located too high #574

Open codeconscious opened 2 years ago

codeconscious commented 2 years ago

Hello,

Button tooltips at times appear well above their respective buttons. This seems to be determined by where the worksheet is oriented vertically within the browser window. The image below illustrates what this looks like:

x-spreadsheet tooltip hover issue

I was able to reproduce this using the project's demo spreadsheet by adding a new large div (via element duplication) immediately above the spreadsheet (as indicated by the green arrow above) that artificially pushes the spreadsheet lower on the page, and also by scrolling the page up and down a bit. At some positions, tooltips appear as expected; at others, tooltips appear at various heights too far above their respective buttons (as indicated by the red arrow in the example above).

It is easy to reproduce this by adjusting where the sheet is located vertically within the browser window and then attempting to view a button tooltip.