Opened 5 years ago

Closed 3 years ago

#17731 closed defect (patchwelcome)

dom-geometry#position(node, true).x broken in RTL pages w/horizontal scrollbar

Reported by: bill Owned by:
Priority: undecided Milestone: 1.13
Component: HTML Version: 1.9.2
Keywords: Cc:
Blocked By: Blocking:

Description

domGeom.position(node, true) should return the position of the node relative to the document.

In an RTL document w/a horizontal scrollbar though, it gets the left position (reported as the x property) wrong, usually returning the position relative to the viewport. It's because window.scrollX is 0 when you are scrolled all the way to the right.

Attachments (2)

position.html (1.3 KB) - added by bill 5 years ago.
test case showing problem
positionLTR.html (1.3 KB) - added by bill 5 years ago.
for comparison, test in LTR mode (this works)

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by bill

Attachment: position.html added

test case showing problem

Changed 5 years ago by bill

Attachment: positionLTR.html added

for comparison, test in LTR mode (this works)

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.