Permalink
Browse files

Element.absolutize should save existing position style so that relati…

…vize restores it.
  • Loading branch information...
pdeffendol committed Dec 10, 2010
1 parent 5e5cfff commit 660c08a935c33f1ee98b2cf1f6d489197db1de66
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/prototype/dom/layout.js
@@ -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({

0 comments on commit 660c08a

Please sign in to comment.