Dynamic show top/bottom

Small changes made on the plugin to enable showing on top when calendars exceed the viewport height.