Menu icon Foundation
Dropdown [js] position

Hi all,

Can we choose "automatic" position of dropdown js depending of window ?

If I am clicking on a button on bottom page, can we open dropdown on top of this button and reverse if my button is on top of window ?

 

Thank a lot !

(sorry for this approximate english ;) )

Dropdown JSdropdownjsjsdropdown

Hi all,

Can we choose "automatic" position of dropdown js depending of window ?

If I am clicking on a button on bottom page, can we open dropdown on top of this button and reverse if my button is on top of window ?

 

Thank a lot !

(sorry for this approximate english ;) )

Val Ery over 3 years ago

 Hi Bart!

This example is suitable? - http://codepen.io/Val_Ery/pen/AXyryj

In example: "sticky-bottom" dropdown menu. I use Foundation Dropdown Menu, Foundation Dropdown Container, Foundation Sticky Plugin and Real Estate Template

Kumar Rangarajan about 3 years ago

Hi, 

The above code works fine if i use foundation 6.2.3 . When i switch to 6.2.4 i am not able to get the dropdown menu to show up at the top. The dropdown menu is not even visible.

 

Thanks,

Kumar.

Val Ery about 3 years ago

Hi Kumar!

In my code try adding to menu with #example-dropdown-1 the attribute data-position-class="top". This will display a dropdown menu. But so far only on click. I'll see what i can do... OK?

http://codepen.io/Val_Ery/pen/woaGJN