Last modified: 2014-04-08 09:01:34 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 T25783, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23783 - Toolbars (sections) added by users do not receive correct height
Toolbars (sections) added by users do not receive correct height
Status: RESOLVED DUPLICATE of bug 37392
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-03 22:56 UTC by Nux
Modified: 2014-04-08 09:01 UTC (History)
5 users (show)

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


Attachments
new section code based on the example from http://usability.wikimedia.org/wiki/Toolbar_customization (1.09 KB, text/x-c)
2010-06-03 22:56 UTC, Nux
Details

Description Nux 2010-06-03 22:56:30 UTC
Created attachment 7426 [details]
new section code based on the example from http://usability.wikimedia.org/wiki/Toolbar_customization

Not sure if filled this report before, but I was unable to find a similar thing...

Steps:
1. Use code in the attachment to add a new section to the new toolbar.
2. Edit an article.
3. Open the section.
4. Refresh the page.

Expected result:
Remember the opened section with the textarea fully visible 

Actual result:
Part of the textarea is not visible. This seems to be due to the fact that it has height set to 1px.

I've made a workaround but it's kinda rough:
var gadgets_sec = getElementsByClassName(nbar, "div", "section-gadgets")[0];
setTimeout(function(){
	if (gadgets_sec.clientHeight>2)
	{
		gadgets_sec.parentNode.style.height = (gadgets_sec.clientHeight+1) + 'px';
	}
}, 1000);

Well maybe it's more then rough ;-). Especially because with previous version of Vector it used to work with 100ms timeout and now I had to set it up to 1s.
Comment 1 Bugmeister Bot 2011-08-19 19:12:51 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 2 Derk-Jan Hartman 2014-04-08 09:01:34 UTC

*** This bug has been marked as a duplicate of bug 37392 ***

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


Navigation
Links