Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Fix when the CSS style width/height has percentage #642

Merged
merged 1 commit into from
Apr 3, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appframework.js
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ if (!window.af || typeof(af) !== "function") {
if (this[0].nodeType === this[0].DOCUMENT_NODE)
return this[0].documentElement.offsetHeight;
else {
var tmpVal = this.css("height").replace("px", "");
var tmpVal = this.computedStyle("height").replace("px", "");
if (tmpVal)
return +tmpVal;
else
Expand All @@ -1265,7 +1265,7 @@ if (!window.af || typeof(af) !== "function") {
if (this[0].nodeType === this[0].DOCUMENT_NODE)
return this[0].documentElement.offsetWidth;
else {
var tmpVal = this.css("width").replace("px", "");
var tmpVal = this.computedStyle("width").replace("px", "");
if (tmpVal)
return +tmpVal;
else
Expand Down