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

kipod <fur.hew...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fur.hew...@gmail.com

--- Comment #7 from kipod <fur.hew...@gmail.com> ---
(In reply to Prateek Saxena from comment #4)
> I can think of two possible solutions:
>  1. Flip the popup–show it above the link
>  2. Auto-scroll the page (ewww)

autoscrolling is of course not an option. hover action can't change the display
of the page (with possible exception change to the element above which you are
hovering).

why not take a look at how the jquery plugin "tipsy" (already included with
mediawiki) does it? 

it has "gravity" setting to determine if the popup should be above,  below,
left or right of the element (they use n,s,e,w plus combinations like ne).

the interesting option and logic there is "automatic" gravity which allows you
to say "popup below element, except at the bottom portion of the window, where
it's above", and similarly when location is too close to left or right edge.

as far as i remember, the "auto" options in tipsy costs maybe 2 or 4 JS lines.

peace.

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

Reply via email to