• Drop down menu when close to bottom

    From Andrew Poulos@21:1/5 to All on Mon Nov 2 09:41:00 2020
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Poulos@21:1/5 to Andrew Poulos on Mon Nov 2 12:57:52 2020
    On 2/11/2020 9:41 am, Andrew Poulos wrote:
    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?

    I gave up and "solved" it with some JavaScript.

    Andrew Poulos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)