mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: add disabledconstrainToWindow to avoid filp
This commit is contained in:
1 parent
32651a283a
commit
2a5c465c95
3 files changed
+7
-3
No files matched your search
@@ -30,7 +30,7 @@ export default class Dropdown extends DOMAttachedObject {
|
||||
content: this.options.target || $.find($dom.attr('data-dropdown-target'))[0],
|
||||
position: this.options.position,
|
||||
openOn: 'hover',
|
||||
constrainToWindow: true,
|
||||
constrainToWindow: $dom.attr('data-dropdown-disabledconstrainToWindow') === undefined,
|
||||
constrainToScrollParent: false,
|
||||
});
|
||||
this.dropInstance.on('open', this.onDropOpen.bind(this));
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
.drop .dropdown-target
|
||||
display: block
|
||||
|
||||
.dropdown
|
||||
max-height: calc(100% - 60px)
|
||||
overflow-y: auto
|
||||
|
||||
.dropdown
|
||||
.menu
|
||||
min-width: rem(150px)
|
||||
|
||||
Reference in new issue
Block a user