Set DOM element as min/maxPosition for dynamic drawer width

Adds the possibility to add a DOM element instead of a static number as minPosition / maxPosition to always use the current width when opening the drawer. This is crucial when the width of your navigation drawer can change, e.g. when having a bigger navigation on tablets.