mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Handle no action buttons in the toolbar edge case [SCI-8626]
Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
parent
7c84ecb108
commit
ad78759393
1 changed files with 4 additions and 1 deletions
|
@ -92,7 +92,10 @@
|
|||
this.buttonOverflow = false;
|
||||
|
||||
this.$nextTick(() => {
|
||||
if (!this.$el.getBoundingClientRect) return;
|
||||
if (
|
||||
!(this.$el.getBoundingClientRect &&
|
||||
document.querySelector('.sn-action-toolbar__action:last-child'))
|
||||
) return;
|
||||
|
||||
let containerRect = this.$el.getBoundingClientRect();
|
||||
let lastActionRect = document.querySelector('.sn-action-toolbar__action:last-child').getBoundingClientRect();
|
||||
|
|
Loading…
Reference in a new issue