Jeremy Martin 2017-02-02 10:58:05 -05:00 committed by Javi Velasco
parent 75a219b0f4
commit 60b147f891
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ const factory = (Input) => {
}
open = (event) => {
if (this.state.active) return;
const client = event.target.getBoundingClientRect();
const screenHeight = window.innerHeight || document.documentElement.offsetHeight;
const up = this.props.auto ? client.top > ((screenHeight / 2) + client.height) : false;