Set overflow style in CSS

It is static and should never change.
This commit is contained in:
Simon Rozman 2025-02-27 15:00:12 +01:00
parent 156e6302e6
commit b41068196e
2 changed files with 1 additions and 2 deletions

View File

@ -885,7 +885,6 @@ class BesService {
this.correctionPanel.style.marginBottom = styles.marginBottom
this.correctionPanel.style.boxSizing = styles.boxSizing
this.correctionPanel.style.scrollBehavior = styles.scrollBehavior
this.correctionPanel.style.overflow = 'hidden'
this.scrollPanel.style.width = `${this.hostElement.scrollWidth}px`
this.scrollPanel.style.height = `${this.hostElement.scrollHeight}px`
this.canvasPanel.style.width = `${this.hostElement.scrollWidth}px`
@ -2291,7 +2290,6 @@ class BesTAService extends BesPlainTextService {
textElement.style.hyphens = styles.hyphens
textElement.style.boxSizing = styles.boxSizing
textElement.style.scrollBehavior = styles.scrollBehavior
textElement.style.overflow = 'hidden'
textElement.style.border = styles.border
textElement.style.borderRadius = styles.borderRadius
textElement.style.padding = styles.padding

View File

@ -54,6 +54,7 @@
.bes-text-panel {
position: absolute;
overflow: hidden;
margin: 0px;
color: transparent;
border-color: transparent;