Il 06/02/2015 06:52, Prateek Saxena ha scritto:
On Tue, Feb 3, 2015 at 7:05 PM, Ricordisamoa
<[email protected]>  wrote:
How do you think a Popups renderer would integrate with OOjs UI?
I haven't thought about this yet. Currently Popups doesn't use any UI
elements (like buttons or inputs) so I didn't feel the need to use a
framework. We might want to use an OOjs UI Dialog but I don't have
enough experience with the framework to tell if it'll work under all
of Popup's positioning and sizing constraints. I am guessing it'll be
a pretty major shift to use both OOjs and OOjs UI, not something that
I'll have the time to do until March.
My implementation uses PopupWidget <https://doc.wikimedia.org/oojs-ui/master/#%21/api/OO.ui.PopupWidget> for the tooltips, which are automatically adjusted according to the anchor's position, while a subclass of ProcessDialog <https://doc.wikimedia.org/oojs-ui/master/#%21/api/OO.ui.ProcessDialog> handles the user configuration. Unfortunately, it doesn't comply with the design specs <https://phabricator.wikimedia.org/T67114#692607>, but on the other hand its operation is very similar to the English Wikipedia gadget (now found on many language editions <https://www.google.com/search?q=intitle:MediaWiki:Gadget-ReferenceTooltips.js+site:wikipedia.org> from where I've imported translations) and is customizable to a fair extent.

When we agree on where to put the finished code, I could either file a new patch or amend yours accordingly.

On Tue, Feb 3, 2015 at 7:05 PM, Ricordisamoa
<[email protected]>  wrote:
Why shouldn't ReferenceTooltips be put into Cite?
I am not sure. As James said, there is already something like this in
Cite but it wasn't enabled. I am not sure why that is. Nick or James
would know better.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to