Skip to content

Commit 0be4f34

Browse files
author
Karol Tatała
committed
IW-1296 | refactor
1 parent 90c64a7 commit 0be4f34

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

app/components/dropdown.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ export default Component.extend({
6161
if (this.canFlip && !this.isLevel2 && this.contentElement) {
6262
const contentElementBoundingRect = this.contentElement.getBoundingClientRect();
6363

64-
if (contentElementBoundingRect.bottom > getViewportSize().height) {
65-
this.set('isFlipped', true);
66-
} else {
67-
this.set('isFlipped', false);
68-
}
64+
this.set('isFlipped', contentElementBoundingRect.bottom > getViewportSize().height);
6965
}
7066

7167
if (this.mouseEnter) {

0 commit comments

Comments
 (0)