Steffen
Well-known member
- Affected version
- 2.0.10
XenForo tries to position tooltips such that they are never hidden by the sticky header.
They are positioned above the triggering element if there is enough space below the sticky header:
If I scroll just a few pixels further down then there isn't enough space anymore between the triggering element and the sticky header which causes the tooltip to move below the triggering element:
This is awesome!
However, the behaviour is different for menus. Menus don't take into account the sticky header and in some circumstances can be cut-off:
In the default theme of XenForo it's possible to scroll up to reveal the full menu. That works because the default XenForo theme uses a lower z-index for the header when the user has scrolled to the very top. Our own theme has always used the same z-index which is why scrolling to the top hasn't revealed the full menu. I could change this to match XenForo's implementation. But it feels a little odd.
Do you consider it a bug that XenForo menus don't take the sticky header height into account (in contrast to tooltips)? Or is this "not a bug"?
They are positioned above the triggering element if there is enough space below the sticky header:
If I scroll just a few pixels further down then there isn't enough space anymore between the triggering element and the sticky header which causes the tooltip to move below the triggering element:
This is awesome!
However, the behaviour is different for menus. Menus don't take into account the sticky header and in some circumstances can be cut-off:
In the default theme of XenForo it's possible to scroll up to reveal the full menu. That works because the default XenForo theme uses a lower z-index for the header when the user has scrolled to the very top. Our own theme has always used the same z-index which is why scrolling to the top hasn't revealed the full menu. I could change this to match XenForo's implementation. But it feels a little odd.
Do you consider it a bug that XenForo menus don't take the sticky header height into account (in contrast to tooltips)? Or is this "not a bug"?