Web browser: ---
            Bug ID: 60183
           Summary: VisualEditor: Standalone demo toolbar breaks sometimes
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Initialisation
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 14335
Screenshot of the bug

See attached screenshot.

This is because the standalone demo initializes the target into a detached DOM
element, then attaches it once it's done. But you can't do that, because it
causes ve.ui.Toolbar.prototype.initialize to be run before the toolbar is
attached to the DOM (and generally causes initialize to be run on unattached
things, which is not allowed), which means its measurements will be wrong, and
so the toolbar gets right: 1840px; (width of screen) rather than width: 63px;
or whatever.

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to