mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
forms MDL-22487 Fixed resizing bug in smart select
This commit is contained in:
parent
d7768a692a
commit
32690ac23c
@ -1659,6 +1659,12 @@ M.form.init_smartselect = function(Y, id, options) {
|
||||
pos[0] += 1;
|
||||
this.nodes.menu.setXY(pos);
|
||||
this.nodes.menu.on('click', this.handle_click, this);
|
||||
|
||||
Y.one(window).on('resize', function(){
|
||||
var pos = this.nodes.select.getXY();
|
||||
pos[0] += 1;
|
||||
this.nodes.menu.setXY(pos);
|
||||
}, this);
|
||||
},
|
||||
generate_menu_content : function() {
|
||||
var content = '<div id="'+this.id+'_smart_select" class="smartselect">';
|
||||
|
Loading…
x
Reference in New Issue
Block a user