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

           Summary: Toolbars (sections) added by users do not receive
                    correct height
           Product: MediaWiki extensions
           Version: any
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: UsabilityInitiative
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]


Created an attachment (id=7426)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7426)
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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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