Viewport option for _dynamicPositioning

Hi there,

In my current project, I needed to constrain the dropdown list to the dimensions of a viewport other than the window, so I made it configurable.