dive2Pro / roam-preview-panels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hover panel position should be modified for non-default panel height

Lightup1 opened this issue · comments

The position of the preview hover panel will be on the top of the link if the space below the link is not enough to show the panel.
This works fine for the default panel height, but for larger value of panel height the plugin follows the default mechanism to decide the position of the preview hover without considering the new panel height defined by the user.
Here is a demo:
image
In the picture, there is not enough space for the larger panel, but the panel is still placed in below the link.

If we further shrink the space below the link, here is the result:
image