Make sure the popup clips itself after it changes height
after filtering results on search.
Bug: T158118
Change-Id: I2f9e8b775b154635aa8b12f44876279173548b99
// on the inline style of the popup
margin-top: 2.4em !important;
max-width: 650px;
+
+ .oo-ui-popupWidget-body {
+ max-height: 70vh;
+ }
}
&-search {
mw.rcfilters.ui.FilterWrapperWidget.prototype.onTextInputChange = function ( newValue ) {
// Filter the results
this.filterPopup.filter( this.model.findMatches( newValue ) );
+ this.capsule.popup.clip();
};
/**