mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-05 14:17:08 +02:00
libraryautosuggest: fix dropdown position
This commit is contained in:
@ -75,12 +75,12 @@ export class LibraryAutoSuggest extends Component {
|
|||||||
}</a></li>`;
|
}</a></li>`;
|
||||||
}
|
}
|
||||||
this.isShowingSuggestions = true;
|
this.isShowingSuggestions = true;
|
||||||
if (!this.textareaBounds) {
|
// if (!this.textareaBounds) {
|
||||||
this.textareaBounds = this.t.getBoundingClientRect();
|
this.textareaBounds = this.t.getBoundingClientRect();
|
||||||
this.list.style.top = this.textareaBounds.bottom + 'px';
|
this.list.style.top = this.textareaBounds.bottom + 'px';
|
||||||
this.list.style.left = this.textareaBounds.left + 'px';
|
this.list.style.left = this.textareaBounds.left + 'px';
|
||||||
this.list.style.width = this.textareaBounds.width + 'px';
|
this.list.style.width = this.textareaBounds.width + 'px';
|
||||||
}
|
// }
|
||||||
this.list.classList.add('is-open');
|
this.list.classList.add('is-open');
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
|
Reference in New Issue
Block a user