Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3297 closed defect (fixed)

html.js: on non-Mozilla browsers offsetLeft/Top and style.left/top differ by left/top margin

Reported by: sjmiles Owned by: sjmiles
Priority: high Milestone: 0.9beta
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

Modify _setMarginBox to reduce left and top by the computed margin values, except on Mozilla.

This means box coordinates are normalized on Mozilla, mostly arbitrarily, but the values seem more natural.

Change History (7)

comment:1 Changed 12 years ago by sjmiles

(In [8943]) Fix _toStyleValue caching, refs #3295. Adjust _setMarginBox for TABLE and BUTTON, refs #3296. Adjust _setMarginBox left/top for non-Mozilla, refs #3297.

comment:2 Changed 12 years ago by sjmiles

Resolution: fixed
Status: newclosed

comment:3 Changed 12 years ago by sjmiles

(In [9065]) Safari: add a null test and return a golem object from getComputedStyle if necessary. Refs #2686.

Adjust _setContentBox for TABLE and BUTTON, refs #3296.

Move left/top margin box adjustments out of _set and into _get. Refs #3297 and #3320.

Let _getContentBox fall back to offsetWidth/Height if clientWidth/Height are 0. Refs #3378.

comment:4 Changed 12 years ago by sjmiles

(In [9069]) Forgot to account for border when switch between client and offset sizing. Refs #3297.

comment:5 Changed 12 years ago by sjmiles

Sorry, last checkin ([9068]) was supposed to ref #3378.

comment:6 Changed 12 years ago by Eugene Lazutkin

(In [9117]) Typo fix. Refs #3297.

comment:7 Changed 12 years ago by Eugene Lazutkin

(In [9134]) More typo fixes. Refs #3297.

Note: See TracTickets for help on using tickets.