https://bugzilla.wikimedia.org/show_bug.cgi?id=62420

--- Comment #1 from Alex Monk <[email protected]> ---
So there's a couple of strange things going on here, which me and Trevor looked
into during Wikimania. In OOjs UI:
* OO.ui.StackLayout.prototype.removeItems tries to scroll to the top item (if
it exists) if we're removing the current item. Otherwise we just unset the
current item.
* It seems that in OO.ui.OptionWidget.prototype.setSelected we should be
checking that the element we're scrolling to is actually visible. (So it's not
just an OO.ui.OutlineWidget thing.)
** Unfortunately this isn't as simple as this.$element.is( ':visible' ) because
visibility:hidden; is not picked up by jQuery as being non-visible... So you
have to hack OO.ui.GridLayout.prototype.update to use display:none; for this
instead. Which probably breaks other things.

So shall we move this into the OOjs UI component and reassign it?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to