Skip to content

Commit 6e5c98b

Browse files
author
zhuxun.jb
committed
bugfix
1 parent 7453a28 commit 6e5c98b

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 最新版本
66

7-
**0.3.1**
7+
**0.3.2**
88

99
## 用Grunt打包
1010

build/flexible.debug.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
}
2727
if (maximumDpr) {
2828
dpr = parseFloat(maximumDpr[1]);
29+
scale = parseFloat((1 / dpr).toFixed(2));
2930
}
3031
}
3132
}

build/flexible.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lib.flexible",
33
"description": "移动端自适应方案",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"homepage": "http://gitlab.alibaba-inc.com/mtb/lib-flexible",
66
"author": [
77
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lib.flexible",
33
"description": "移动端自适应方案",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"homepage": "http://gitlab.alibaba-inc.com/mtb/lib-flexible",
66
"author": [
77
{

src/flexible.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
}
2727
if (maximumDpr) {
2828
dpr = parseFloat(maximumDpr[1]);
29+
scale = parseFloat((1 / dpr).toFixed(2));
2930
}
3031
}
3132
}

0 commit comments

Comments
 (0)