Merge "RCFilters UI: Limit filter popup height"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 27 Feb 2017 18:44:59 +0000 (18:44 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 27 Feb 2017 18:44:59 +0000 (18:44 +0000)
resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterWrapperWidget.less
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterWrapperWidget.js

index bdc94b3..da6fa46 100644 (file)
@@ -8,6 +8,10 @@
                // on the inline style of the popup
                margin-top: 2.4em !important;
                max-width: 650px;
+
+               .oo-ui-popupWidget-body {
+                       max-height: 70vh;
+               }
        }
 
        &-search {
index d46bd4b..9fa58f3 100644 (file)
@@ -73,6 +73,7 @@
        mw.rcfilters.ui.FilterWrapperWidget.prototype.onTextInputChange = function ( newValue ) {
                // Filter the results
                this.filterPopup.filter( this.model.findMatches( newValue ) );
+               this.capsule.popup.clip();
        };
 
        /**