mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09: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));
|
||||
|
||||
Reference in new issue
Block a user