user selection: MDL-17073 add options to control the search in a collapsible region - Fix IE layout glitch.
This commit is contained in:
@@ -625,8 +625,11 @@ function collapsible_region(id, userpref, strtooltip) {
|
||||
// Get to the right initial state.
|
||||
if (this.div.className.match(/\bcollapsed\b/)) {
|
||||
this.collapsed = true;
|
||||
var region = YAHOO.util.Region.getRegion(this.caption);
|
||||
this.div.style.height = (region.bottom - region.top + 3) + 'px';
|
||||
var self = this;
|
||||
setTimeout(function() {
|
||||
var region = YAHOO.util.Region.getRegion(self.caption);
|
||||
self.div.style.height = (region.bottom - region.top + 3) + 'px';
|
||||
}, 10);
|
||||
}
|
||||
|
||||
// Add the appropriate image.
|
||||
|
||||
Reference in New Issue
Block a user