try to fix it?

This commit is contained in:
Henry Jameson 2024-06-26 01:45:24 +03:00
parent 7a8511f86c
commit 6ffaa8edc9

View file

@ -138,8 +138,8 @@ const EmojiPicker = {
const css = window.getComputedStyle(this.$refs.popover.$el)
const emojiSize = css.getPropertyValue('--emojiSize')
const emojiSizeUnit = emojiSize.replace(/[0-9,.]+/, '')
const emojiSizeValue = emojiSize.replace(/[^0-9,.]+/, '')
const fontSize = css.getPropertyValue('font-size').replace(/[^0-9,.]+/, '')
const emojiSizeValue = Number(emojiSize.replace(/[^0-9,.]+/, ''))
const fontSize = Number(emojiSize.replace(css.getPropertyValue('font-size').replace(/[^0-9,.]+/, ''))
let emojiSizeReal
if (emojiSizeUnit.endsWith('em')) {
@ -206,10 +206,6 @@ const EmojiPicker = {
scrollHeader () {
// Scroll the active tab's header into view
const headerRef = this.groupRefs['group-header-' + this.activeGroup]
if (!headerRef) {
console.error('ERROR IN HEADER SCROLL')
return
}
const left = headerRef.offsetLeft
const right = left + headerRef.offsetWidth
const headerCont = this.$refs.header