Skip to content

Datepicker appears above component when it would appear below the viewport #381

Closed
wants to merge 1 commit into from

3 participants

@gibbonsd1

...h space at the bottom of the screen for it to be fully visible.

Daniel Gibbons Datepicker appears above component used to open it if there is not en…
…ough space at the bottom of the screen for it to be fully visible.
86c2873
@schettino72

A simpler option is to just scroll the element into view

        this.element[0].scrollIntoView();

This would be an improvement to the current calculation of the datepicker location. However, with the current release, when the datepicker is clicked, it appears below the button that was clicked along with an arrow pointing up towards the button. If you move the datepicker above the button, you must also move the arrow to the bottom of the datepicker and change it so that it points down instead of up. That is the additional logic included in this commit.

@eternicode eternicode closed this Oct 22, 2013
@jamesbrucepower jamesbrucepower pushed a commit to efundamentals/bootstrap-datepicker that referenced this pull request May 5, 2015
@Eonasdan Eonasdan fixes and new features
Added temp fix for #740
Fixed: #726, #694
I think I fixed: #716
Features:
Added several key bindings from #693
Fully implemented inline mode! #381, #752, #692, #84
Added clear public function

had to revert namespace changes :(
a4e7201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.