Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

如果滚动条在body上下拉向上向下位置计算有误 #1127

Closed
wants to merge 7 commits into from
Closed

如果滚动条在body上下拉向上向下位置计算有误 #1127

wants to merge 7 commits into from

Conversation

machuanjia
Copy link

uiSelect:directive
var _scrollTop = $document[0].documentElement.scrollTop;
if(_scrollTop === 0){
_scrollTop = angular.element("body")[0].scrollTop;
}
// Determine if the direction of the dropdown needs to be changed.
if (offset.top + offset.height + offsetDropdown.height > _scrollTop + $document[0].documentElement.clientHeight) {

1030:
var _scrollTop = $document[0].documentElement.scrollTop;
              if(_scrollTop === 0){
                _scrollTop = angular.element("body")[0].scrollTop;
              }
滚动天scrolltop计算修改
@cdjackson
Copy link
Contributor

probable duplicate of #1047

@cdjackson
Copy link
Contributor

probable duplicate of #989

@cdjackson
Copy link
Contributor

#1016 #990 #836 #977 #148

if (offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].documentElement.clientHeight) {
var _scrollTop = $document[0].documentElement.scrollTop;
if(_scrollTop === 0){
_scrollTop = angular.element("body")[0].scrollTop;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supported by jqLite or are you requiring jQuery?

no result item
no resulte item
no result item
no result item
@dimirc
Copy link
Contributor

dimirc commented Sep 28, 2015

Should be solved with #1212

@dimirc dimirc closed this Sep 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants