Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
make sure getComputedStyle reports values correctly on Safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jun 24, 2014
1 parent f75e567 commit 511c67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ <h2>Dialog</h2>
// TODO(sorvell): force SD Polyfill to render
forcePolyfillRender(this.target);
if (!this._shouldPosition) {
this.target.style.position = 'static';
this.target.style.position = 'absolute';
var computed = getComputedStyle(this.target);
var t = (computed.top === 'auto' && computed.bottom === 'auto');
var l = (computed.left === 'auto' && computed.right === 'auto');
Expand Down

0 comments on commit 511c67e

Please sign in to comment.