Bartosz Dziewoński has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/398196 )

Change subject: Put menus/popups of infused widgets into the default overlay
......................................................................

Put menus/popups of infused widgets into the default overlay

Bug: T182602
Change-Id: Iab929d30a1b75daec3683ee1feb97f833fb7f4c3
---
M php/layouts/FieldLayout.php
M php/layouts/FieldsetLayout.php
M php/widgets/ComboBoxInputWidget.php
M php/widgets/DropdownInputWidget.php
4 files changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/96/398196/1

diff --git a/php/layouts/FieldLayout.php b/php/layouts/FieldLayout.php
index e070605..0160a4e 100644
--- a/php/layouts/FieldLayout.php
+++ b/php/layouts/FieldLayout.php
@@ -247,6 +247,7 @@
                if ( $this->help !== '' ) {
                        $config['help'] = $this->help->getTitle();
                }
+               $config['$overlay'] = true;
                return parent::getConfig( $config );
        }
 }
diff --git a/php/layouts/FieldsetLayout.php b/php/layouts/FieldsetLayout.php
index a161008..d69d2ff 100644
--- a/php/layouts/FieldsetLayout.php
+++ b/php/layouts/FieldsetLayout.php
@@ -46,4 +46,9 @@
                        $this->addItems( $config['items'] );
                }
        }
+
+       public function getConfig( &$config ) {
+               $config['$overlay'] = true;
+               return parent::getConfig( $config );
+       }
 }
diff --git a/php/widgets/ComboBoxInputWidget.php 
b/php/widgets/ComboBoxInputWidget.php
index c2f8d34..d2fe471 100644
--- a/php/widgets/ComboBoxInputWidget.php
+++ b/php/widgets/ComboBoxInputWidget.php
@@ -74,6 +74,7 @@
                if ( $this->forceAutocomplete ) {
                        $config['autocomplete'] = true;
                }
+               $config['$overlay'] = true;
                return parent::getConfig( $config );
        }
 }
diff --git a/php/widgets/DropdownInputWidget.php 
b/php/widgets/DropdownInputWidget.php
index 83430f5..0b04c23 100644
--- a/php/widgets/DropdownInputWidget.php
+++ b/php/widgets/DropdownInputWidget.php
@@ -107,6 +107,7 @@
                        }
                }
                $config['options'] = $o;
+               $config['dropdown'] = [ '$overlay' => true ];
                return parent::getConfig( $config );
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/398196
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab929d30a1b75daec3683ee1feb97f833fb7f4c3
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to