Skip to content

Commit

Permalink
Merge branch 'layout' of git@github.com:sstephenson/prototype into la…
Browse files Browse the repository at this point in the history
…yout

Conflicts:
	src/dom.js
	src/dom/dom.js
	src/dom/layout.js
  • Loading branch information
savetheclocktower committed Feb 15, 2010
2 parents d43c6d4 + 5149c1b commit c32865f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/layout.js
Expand Up @@ -311,7 +311,7 @@
// If not, that means the element's width depends upon the width of
// its parent.
var parent = element.parentNode, pLayout = $(parent).getLayout();

newWidth = pLayout.get('width') -
this.get('margin-left') -
this.get('border-left') -
Expand Down
4 changes: 4 additions & 0 deletions test/unit/fixtures/dom.css
Expand Up @@ -39,6 +39,10 @@ div.style-test { margin-left: 1px }
width: 20em;
}

#dimensions-visible {
padding-top: 0.1em;
}

#dimensions-visible-pos-abs,
#dimensions-display-none-pos-abs {
position: absolute;
Expand Down

0 comments on commit c32865f

Please sign in to comment.