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

       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
          Assignee: krinklem...@gmail.com
          Reporter: roan.katt...@gmail.com
                CC: jforres...@wikimedia.org, jh...@wikimedia.org,
                    krinklem...@gmail.com, ryasm...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 14335
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=14335&action=edit
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to