#1374 new
sserdyuk

Element#positionedOffset miscalculates when margins are used

Reported by sserdyuk | August 31st, 2012 @ 10:16 PM

valueL and valueT are swapped when margins are taken into consideration. valueL is be used for 'margin-left' and valueT for 'margin-top'. Right now it shifts the position to the top if the left margin is assigned.

  function positionedOffset(element) {
  ....

    valueL -= layout.get('margin-top');
    valueT -= layout.get('margin-left');

    return new Element.Offset(valueL, valueT);
  }

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages