Last modified: 2012-09-27 01:10:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32374, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30374 - Implement fixed position menus gadget as an option in core
Implement fixed position menus gadget as an option in core
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-14 20:58 UTC by Eran Roz
Modified: 2012-09-27 01:10 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eran Roz 2011-08-14 20:58:39 UTC
It has been requested in Hebrew Wikipedia by some users to allow customization of the menus: Sidebar menu and top menu [edit, history etc], to have fixed position, so when scrolling the page they will still have easy access to menus. 

I enable this option as a gadget, containing the following CSS:

div#mw-panel{
position:fixed;
}
#p-lang .body{
max-height:100px;
overflow:auto;
}
div#mw-head{
position:fixed;
background:#FFFFFF url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAsCAIAAAArRUU2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADpJREFUeF5VjUkOAEAIwoD//7lzGJd4MJHGSoBImkFETP67CdLldUd7KC6f8fv3+psd8znbtU5x354HaWQjOx76v7MAAAAASUVORK5CYII=") repeat-x bottom;
}

(the gadget page itself:
http://he.wikipedia.org/wiki/%D7%9E%D7%93%D7%99%D7%94_%D7%95%D7%99%D7%A7%D7%99:Gadget-FixedMenu.css )

It works well as a gadget, but some people suggested it isn't specific to Hebrew and maybe other projects may want it too: so I would like to suggest adding it as an option in preference for fixed menus.

== Known issues ==
*Works only in vector skin.
*As the sidebar may have height larger the document height, part of it can be inaccessible in some situations. For this reason I added limitation of 100px to interwikis (p-lang). This may not be enough, and it dependence on document size (user specific - resulotion/window size), sidebar height ([[mediawiki:sidebar]]/extensions that adds to sidebar - site specific) and so on. This issue is relevant only to the sidebar and not to the top menu. 
*Browsers compatibility - the above is very simple css, but some old browsers such as IE6 doesn't support position:fixed.
Comment 1 Krinkle 2011-08-14 21:56:15 UTC
Imho, this is pretty much what Gadgets are for.

The ability to share Gadgets across wikis is being worked on at this very moment and is scheduled to be released by the time MediaWiki 1.19 is ready.

Roughly:
* Develop gadgets like we do now
* If you want to share something, move or ask someone to move it to the central gadget wiki (probably mediawiki.org) and mark it as a Shared gadget.
* At this point it will be in the preferences on all wikis as a Global gadget that anyone anywhere can enable.
Comment 2 Chad H. 2011-08-14 22:09:18 UTC
We support this in some of the older skins (floating sidebar preference). Should probably remove that from core and make it a gadget like Krinkle suggests.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links