mirror of
https://github.com/moodle/moodle.git
synced 2025-07-27 17:30:53 +02:00
MDL-32297 Forms: Date Picker JS popup is not constraint to parent form
This commit is contained in:
2
lib/form/yui/dateselector/dateselector.js
vendored
2
lib/form/yui/dateselector/dateselector.js
vendored
@@ -222,7 +222,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
|
|||||||
},
|
},
|
||||||
fix_position : function() {
|
fix_position : function() {
|
||||||
if (this.currentowner) {
|
if (this.currentowner) {
|
||||||
this.panel.set('constrain', this.currentowner.get('node').ancestor('form'));
|
this.panel.set('constrain', Y.one(document.body));
|
||||||
this.panel.set('align', {
|
this.panel.set('align', {
|
||||||
node:this.currentowner.get('node').one('select'),
|
node:this.currentowner.get('node').one('select'),
|
||||||
points:[Y.WidgetPositionAlign.BL, Y.WidgetPositionAlign.TL]
|
points:[Y.WidgetPositionAlign.BL, Y.WidgetPositionAlign.TL]
|
||||||
|
Reference in New Issue
Block a user