Page MenuHomePhabricator

VisualEditor: Uncaught Error: Offset could not be translated to a DOM element and offset: 227 appears and Cannot unselect the image highlight after moving it to the center of the page
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE which contains a image at the right

2.Select the image

3.Go to the Media Settings> Advanced Settings

4.Move the position of the image to center

5.Select some other element or just click outside the image anywhere on the page

Observed result:
Cannot select any other object in the page
An error appears in the console:
Uncaught Error: Offset could not be translated to a DOM element and offset: 227

See the screenshot attached.
Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65 & FF 25
Page:http://en.wikipedia.beta.wmflabs.org/wiki/Ehat?veaction=edit


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-02-06_at_4.17.02_PM.png (596×1 px, 190 KB)

Details

Reference
bz61001

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:04 AM
bzimport set Reference to bz61001.

It happens while moving an image from Left to Right too

Change 113258 had a related patch set uploaded by Jforrester:
Prevent clicks on top-most shield for centered image nodes

https://gerrit.wikimedia.org/r/113258

I believe that gerrit 113256 fixed part of this issue.

Change 113258 merged by jenkins-bot:
Prevent clicks on top-most shield for centered image nodes

https://gerrit.wikimedia.org/r/113258