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

       Web browser: ---
             Bug #: 40792
           Summary: jquery.makeCollapsible should avoid page scroll when
                    collapsing elements
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


(In reply to Bug 27488 comment #28)
> Following a link to a section in long discussion page:
> 
> * Click the link.
> * Wait for the page to appear (takes a while since the pages are not cached 
> for
> users who are logged in)
> * Notice that you have been sent to a different location. No section header
> anywhere near.
> * Try to locate the right position anyway.
> * If you can't find it, click the url bar and press Enter. (Maybe the Reload
> button also does it in some browsers.)

Maybe the script resources/jquery/jquery.makeCollapsible.js (the function
toggleLinkPremade?) could memorize the current scroll position and restore it
right after collapsing an element in the page (I think LQT does something like
that). This could help if the element is one of those which are above the
current section (currently you may end up a few sections below the one you
wanted)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to