Skip to content

Commit da693c9

Browse files
committed
fix: QBtnDropdown Popover does not scroll quasarframework#2136
1 parent afc0434 commit da693c9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/components/editor/QEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export default {
298298
let toolbars
299299
if (this.hasToolbar) {
300300
const toolbarConfig = {
301-
staticClass: `q-editor-toolbar row no-wrap scroll`,
301+
staticClass: `q-editor-toolbar row no-wrap scroll-x`,
302302
'class': [
303303
{ 'q-editor-toolbar-separator': !this.toolbarOutline && !this.toolbarPush },
304304
this.toolbarBackgroundClass

src/css/core/mouse.styl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33

44
.scroll
55
overflow auto
6+
.scroll, .scroll-x, .scroll-y
67
-webkit-overflow-scrolling touch
78
will-change scroll-position
9+
.scroll-x
10+
overflow-x auto
11+
.scroll-y
12+
overflow-y auto
813
.no-scroll
914
overflow hidden !important
1015

src/utils/scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { css } from './dom'
22

33
export function getScrollTarget (el) {
4-
return el.closest('.scroll') || window
4+
return el.closest('.scroll,.scroll-y') || window
55
}
66

77
export function getScrollHeight (el) {

0 commit comments

Comments
 (0)