Skip to content

Loading…

Store position setting when calling Element.absolutize #11

Merged
merged 1 commit into from

3 participants

@metavida

+1 for integrating this patch into the next Prototype release (or at least merging to the master branch).

I just ran into this bug in our app, upgrading from 1.6.x to 1.7. This patch was exactly what I needed.

@savetheclocktower savetheclocktower merged commit 27c7db3 into sstephenson:master
@savetheclocktower
Collaborator

Sorry, meant to get this into 1.7.1. It'll be in 1.7.1.1, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 10, 2010
  1. @pdeffendol
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/prototype/dom/layout.js
View
9 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({
Something went wrong with that request. Please try again.