Put back horizontal scrolling option
DOM document is 2-dimensional! What applies to one dimension, may apply to another too. Never assume we're scrolling texts vertically only.
This commit is contained in:
parent
76ba7788c0
commit
efc0009301
@ -266,14 +266,20 @@ class BesService {
|
|||||||
*/
|
*/
|
||||||
setCorrectionPanelSize() {
|
setCorrectionPanelSize() {
|
||||||
const styles = window.getComputedStyle(this.hostElement)
|
const styles = window.getComputedStyle(this.hostElement)
|
||||||
|
const totalWidth =
|
||||||
|
parseFloat(styles.paddingLeft) +
|
||||||
|
parseFloat(styles.marginLeft) +
|
||||||
|
parseFloat(styles.width) +
|
||||||
|
parseFloat(styles.marginRight) +
|
||||||
|
parseFloat(styles.paddingRight)
|
||||||
const totalHeight =
|
const totalHeight =
|
||||||
parseFloat(styles.paddingTop) +
|
parseFloat(styles.paddingTop) +
|
||||||
parseFloat(styles.marginTop) +
|
parseFloat(styles.marginTop) +
|
||||||
parseFloat(styles.height) +
|
parseFloat(styles.height) +
|
||||||
parseFloat(styles.marginBottom) +
|
parseFloat(styles.marginBottom) +
|
||||||
parseFloat(styles.paddingBottom)
|
parseFloat(styles.paddingBottom)
|
||||||
|
this.correctionPanel.style.width = `${totalWidth}px`
|
||||||
this.correctionPanel.style.height = `${totalHeight}px`
|
this.correctionPanel.style.height = `${totalHeight}px`
|
||||||
this.correctionPanel.style.width = styles.width
|
|
||||||
this.correctionPanel.style.marginLeft = styles.marginLeft
|
this.correctionPanel.style.marginLeft = styles.marginLeft
|
||||||
this.correctionPanel.style.marginRight = styles.marginRight
|
this.correctionPanel.style.marginRight = styles.marginRight
|
||||||
this.correctionPanel.style.paddingLeft = styles.paddingLeft
|
this.correctionPanel.style.paddingLeft = styles.paddingLeft
|
||||||
|
Loading…
x
Reference in New Issue
Block a user