Drop down menu when close to bottom

2 views
Skip to first unread message

Andrew Poulos

unread,
Nov 1, 2020, 5:41:09 PM11/1/20
to
I have top bar (a DIV) with a number of buttons on it. When a button is
selected a menu (another DIV) appears underneath the button.

The top bar is draggable.

If the top bar is dragged closer to the bottom of the window than the
height of the menu, how can I tell the menu to display above (instead of
beneath) the button that triggered its display?

Andrew Poulos

Andrew Poulos

unread,
Nov 1, 2020, 8:57:59 PM11/1/20
to
I gave up and "solved" it with some JavaScript.

Andrew Poulos
Reply all
Reply to author
Forward
0 new messages