Removes updateIfHeightChanged override on rcfilters
authorJan Drewniak <jan.drewniak@gmail.com>
Wed, 12 Jun 2019 11:02:12 +0000 (13:02 +0200)
committerJdrewniak <jdrewniak@wikimedia.org>
Wed, 12 Jun 2019 14:46:10 +0000 (14:46 +0000)
This override causes the rcfilter dropdown menu to be incorrectly
positioned when the height of the "tag box" changes,
i.e. when a tag is added and an additional row is created.

This override was originally added as part of T198399 in commit
a9fc286, but given bb15314 prevents the resize event from firing on
pageload, that change should mitigate the performance impact of
this function.

Bug: T225499
Change-Id: I4a296c7d3c277d5415144aee6434b63a5035d275

resources/src/mediawiki.rcfilters/ui/FilterTagMultiselectWidget.js

index 085e22b..ab75653 100644 (file)
@@ -267,11 +267,6 @@ OO.inheritClass( FilterTagMultiselectWidget, OO.ui.MenuTagMultiselectWidget );
 
 /* Methods */
 
-/**
- * Override parent method to avoid unnecessary resize events.
- */
-FilterTagMultiselectWidget.prototype.updateIfHeightChanged = function () { };
-
 /**
  * Respond to view select widget choose event
  *