Permalink
Browse files

MDL-32297 Forms: Date Picker JS popup is not constraint to parent form

  • Loading branch information...
1 parent 305fbe7 commit 7c6c39f153349a7e9d550353c0389d3986942abe @FMCorz FMCorz committed Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/form/yui/dateselector/dateselector.js
@@ -221,7 +221,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
},
fix_position : function() {
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', {
node:this.currentowner.get('node').one('select'),
points:[Y.WidgetPositionAlign.BL, Y.WidgetPositionAlign.TL]

0 comments on commit 7c6c39f

Please sign in to comment.