Wikia/app — pull request #5180 by BladeBronson (2014-10-28 23:52:13+00:00)
Title: gallery-clearing: Move clearing from inner to wrapper

VisualEditor measures the bounding box of an element for drawing focus highlights. When a gallery is beside floated content (infoboxes, thumbs), the contents of the media-gallery-inner clears the float, but the outer edia-gallery-wrapper does not. This causes a very large highlight to be drawn.