Fix unnecessary scrollbar in scrolled mode

This commit is contained in:
John Factotum
2023-05-16 15:50:20 +08:00
parent 257538169d
commit 3c4d309b52
+1 -1
View File
@@ -446,7 +446,7 @@ export class Paginator extends HTMLElement {
// FIXME: vertical-rl only, not -lr
this.setAttribute('dir', vertical ? 'rtl' : 'ltr')
this.style.padding = '0'
this.#container.style.overflow ='scroll'
this.#container.style.overflow ='auto'
this.#maxWidthContainer.style.maxWidth = 'none'
this.#maxHeightContainer.style.maxHeight = 'none'
const columnWidth = this.layout.maxColumnWidth