Skip to content

Commit

Permalink
Merge pull request #1241 from ng-select/adjust-position-fix
Browse files Browse the repository at this point in the history
fix: adjust dropdown position on selection change - include top
  • Loading branch information
varnastadeus committed Jul 2, 2019
2 parents 4ed4f72 + 69490ae commit 7ec84b3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ng-select/ng-dropdown-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ export class NgDropdownPanelComponent implements OnInit, OnChanges, OnDestroy {
}

adjustPosition() {
if (this._currentPosition === 'top') {
return;
}

const parent = this._parent.getBoundingClientRect();
const select = this._select.getBoundingClientRect();
this._setOffset(parent, select);
Expand Down

0 comments on commit 7ec84b3

Please sign in to comment.