var bb = this.overlay.get('boundingBox');
var dialogue = this.container.one('.alloptions');
+ // Get the overflow setting when the chooser was opened - we
+ // may need this later
+ if (Y.UA.ie > 0) {
+ this.initialoverflow = Y.one('html').getStyle('overflow');
+ } else {
+ this.initialoverflow = Y.one('body').getStyle('overflow');
+ }
+
var thisevent;
+ // This will detect a change in orientation and retrigger centering
+ thisevent = Y.one('document').on('orientationchange', function(e) {
+ this.center_dialogue(dialogue);
+ }, this);
+ this.listenevents.push(thisevent);
+
+ // Detect window resizes (most browsers)
+ thisevent = Y.one('window').on('resize', function(e) {
+ this.center_dialogue(dialogue);
+ }, this);
+ this.listenevents.push(thisevent);
+
// These will trigger a check_options call to display the correct help
thisevent = this.container.on('click', this.check_options, this);
this.listenevents.push(thisevent);