File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -274,9 +274,9 @@ export default class DateTimeField extends Component {
274
274
} ;
275
275
offset . top = offset . top + findDOMNode ( this . refs . datetimepicker ) . offsetHeight ;
276
276
scrollTop = ( window . pageYOffset !== undefined ) ? window . pageYOffset : ( document . documentElement || document . body . parentNode || document . body ) . scrollTop ;
277
- placePosition = this . props . direction === "up" ? "top" : this . props . direction === "bottom" ? "bottom" : this . props . direction === "auto" ? offset . top + this . refs . widget . getDOMNode ( ) . offsetHeight > window . offsetHeight + scrollTop && this . refs . widget . offsetHeight + this . refs . datetimepicker . getDOMNode ( ) . offsetHeight > offset . top ? "top" : "bottom" : void 0 ;
277
+ placePosition = this . props . direction === "up" ? "top" : this . props . direction === "bottom" ? "bottom" : this . props . direction === "auto" ? offset . top + findDOMNode ( this . refs . widget ) . offsetHeight > window . offsetHeight + scrollTop && this . refs . widget . offsetHeight + findDOMNode ( this . refs . datetimepicker ) . offsetHeight > offset . top ? "top" : "bottom" : void 0 ;
278
278
if ( placePosition === "top" ) {
279
- offset . top = - this . refs . widget . getDOMNode ( ) . offsetHeight - this . getDOMNode ( ) . clientHeight - 2 ;
279
+ offset . top = - findDOMNode ( this . refs . widget ) . offsetHeight - findDOMNode ( this ) . clientHeight - 2 ;
280
280
classes . top = true ;
281
281
classes . bottom = false ;
282
282
classes [ "pull-right" ] = true ;
You can’t perform that action at this time.
0 commit comments