Skip to content

Commit

Permalink
Element.absolutize should save existing position style so that relati…
Browse files Browse the repository at this point in the history
…vize restores it.
  • Loading branch information
Pete Deffendol committed Dec 10, 2010
1 parent 5e5cfff commit 660c08a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/prototype/dom/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,10 +1056,11 @@
var layout = element.getLayout();

element.store('prototype_absolutize_original_styles', {
left: element.getStyle('left'),
top: element.getStyle('top'),
width: element.getStyle('width'),
height: element.getStyle('height')
position: element.getStyle('position'),
left: element.getStyle('left'),
top: element.getStyle('top'),
width: element.getStyle('width'),
height: element.getStyle('height')
});

element.setStyle({
Expand Down

0 comments on commit 660c08a

Please sign in to comment.