mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 18:36:20 +00:00
970cf03cc8
ve.ui.Context#updateDimensions does two things: it updates the position of the popup by measuring where the selection is, and it updates the width and height of the popup by measuring the contents of the inspector or the context menu. In some cases, measuring where the selection is fails, and ve.ce.Surface#getSelectionRect returns null. This seems to only happen 1) in phantomjs while running the test suite and 2) when an inspector is opened and doesn't adjust the selection while opening. I suspect it has something to do with the selection not having been recently set or the documentNode not having focus, but I haven't investigated this in depth yet. Prior to |
||
---|---|---|
.. | ||
actions | ||
inspectors | ||
styles | ||
tools | ||
widgets | ||
ve.ui.Action.js | ||
ve.ui.ActionFactory.js | ||
ve.ui.Command.js | ||
ve.ui.CommandRegistry.js | ||
ve.ui.Context.js | ||
ve.ui.Dialog.js | ||
ve.ui.Inspector.js | ||
ve.ui.js | ||
ve.ui.Surface.js | ||
ve.ui.TargetToolbar.js | ||
ve.ui.Toolbar.js | ||
ve.ui.ToolFactory.js | ||
ve.ui.Trigger.js | ||
ve.ui.TriggerRegistry.js | ||
ve.ui.WindowSet.js |