Ticket #108 (closed task: invalid)

Opened 2 years ago

Last modified 1 year ago

painting

Reported by: omega@palle.net Assigned to: beau@hartshornesoftware.com
Priority: lowest Milestone: MochiKit 1.5
Component: component2 Version:
Severity: blocker Keywords: painting
Cc: painting

Description

http://home.palle.net/~omega/DateSelector/examples/dateselector.html for an example.

The problem seems to be if I position an element relative, and then try to getElementPosition on an element inside that element.

Attachments

MochiKit-getElementPosition-relative-problem.diff (0.7 kB) - added by anonymous on 05/15/06 23:40:59.
Seems to fix the problem mostly atleast.

Change History

05/15/06 23:40:59 changed by anonymous

  • attachment MochiKit-getElementPosition-relative-problem.diff added.

Seems to fix the problem mostly atleast.

05/17/06 11:05:27 changed by beau@hartshornesoftware.com

  • owner changed from somebody to beau@hartshornesoftware.com.

05/30/06 16:51:17 changed by beau@hartshornesoftware.com

This patch would break a Opera and Safari workaround.

05/31/06 14:46:34 changed by omega@palle.net

I tested on safari and firefox for mac, and both worked better with the patch. Firefox worked flawlessly, but safari missalligned by a few pixels, still way better than before.

06/07/06 16:27:28 changed by beau@hartshornesoftware.com

  • status changed from new to closed.
  • resolution set to invalid.

I was wrong, this doesn't break the Opera and Safari workarounds.

I think getElementPosition's behavior is correct. It should return the element's position relative to the "client's upper-left corner" (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/getboundingclientrect.asp). To get an element's position relative to its container, just use the .left/.top properties. We'll be adding a wrapper for those soon, see #84.

07/06/07 12:09:20 changed by anonymous

  • severity changed from normal to blocker.
  • cc set to painting.
  • component changed from component1 to component2.
  • summary changed from MochiKit.Style.getElementPosition problems with position: relative to painting.
  • priority changed from normal to lowest.
  • milestone set to MochiKit 1.5.
  • keywords set to painting.
  • type changed from defect to task.