We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c64a7 commit 0be4f34Copy full SHA for 0be4f34
app/components/dropdown.js
@@ -61,11 +61,7 @@ export default Component.extend({
61
if (this.canFlip && !this.isLevel2 && this.contentElement) {
62
const contentElementBoundingRect = this.contentElement.getBoundingClientRect();
63
64
- if (contentElementBoundingRect.bottom > getViewportSize().height) {
65
- this.set('isFlipped', true);
66
- } else {
67
- this.set('isFlipped', false);
68
- }
+ this.set('isFlipped', contentElementBoundingRect.bottom > getViewportSize().height);
69
}
70
71
if (this.mouseEnter) {
0 commit comments