Merge branch 'MDL-37566-m' of git://github.com/andrewnicols/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 5 Feb 2013 00:14:07 +0000 (01:14 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 5 Feb 2013 00:14:07 +0000 (01:14 +0100)
lib/yui/chooserdialogue/chooserdialogue.js

index cb7d54a..897f0c5 100644 (file)
@@ -239,8 +239,7 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
             // new max-height
             totalheight = newheight;
             newheight = newheight - (15 + 15 + 40 + 40);
-            dialogue.setStyle('max-height', newheight + 'px');
-            dialogue.setStyle('height', newheight + 'px');
+            dialogue.setStyle('maxHeight', newheight + 'px');
 
             // Re-calculate the location now that we've changed the size
             dialoguetop = Math.max(12, ((winheight - totalheight) / 2)) + offsettop;