Is it possible to use a select2 in a header that has position: fixed? When I try that, and scroll down the rest of the page, the offset top for the select2 is not based on the headers position but on the position of the scrollable part ($window.pageYOffset). This makes the dropdown to open upwards even if there is no place for it. Am I doing something wrong or it it not possible?
Hi,
Select2 4.0.1 and up should support fixed positioning, though you may need to use the `dropdownParent` option. This would require you to set the header containing Select2 as the parent, where the dropdown will be placed in.
Select2 3.x allows for fixed positioning out of the box because it blocks scrolling (using the mask) and will account for the header positioning.
Kevin
--
You received this message because you are subscribed to the Google Groups "select2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to select2+u...@googlegroups.com.
To post to this group, send email to sel...@googlegroups.com.
Visit this group at https://groups.google.com/group/select2.
For more options, visit https://groups.google.com/d/optout.