1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-02-19 20:55:55 +01:00

libraryautosuggest: fix dropdown position

This commit is contained in:
Kushagra Gour 2019-03-18 18:59:26 +05:30
parent 52849f5b56
commit 1444138a2d

View File

@ -75,12 +75,12 @@ export class LibraryAutoSuggest extends Component {
}</a></li>`;
}
this.isShowingSuggestions = true;
if (!this.textareaBounds) {
this.textareaBounds = this.t.getBoundingClientRect();
this.list.style.top = this.textareaBounds.bottom + 'px';
this.list.style.left = this.textareaBounds.left + 'px';
this.list.style.width = this.textareaBounds.width + 'px';
}
// if (!this.textareaBounds) {
this.textareaBounds = this.t.getBoundingClientRect();
this.list.style.top = this.textareaBounds.bottom + 'px';
this.list.style.left = this.textareaBounds.left + 'px';
this.list.style.width = this.textareaBounds.width + 'px';
// }
this.list.classList.add('is-open');
});
}, 500);