Skip to content

Commit 979385c

Browse files
author
Tom Doan
committed
Update to v1.1.0
1 parent 1f2b935 commit 979385c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "scalem",
33
"description": "A lightweight jQuery plugin to make any element scalable (responsive).",
4-
"version": "1.0.6",
4+
"version": "1.1.0",
55
"main": "dist/jquery.scalem.js",
66
"license": "MIT",
77
"ignore": [

dist/jquery.scalem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Scalem v1.0.6 - A responsive text jQuery plugin
2+
* Scalem v1.1.0 - A responsive text jQuery plugin
33
* Copyright 2014, Tom Doan (http://www.tohodo.com/)
44
*
55
* Scalem by Tom Doan is licensed under the MIT License.
@@ -63,7 +63,7 @@
6363
oStyles = {};
6464
for (var i=0, imax=aStyles.length; i<imax; i++) {
6565
if (!aStyles[i]) continue;
66-
oStyles[aStyles[i]] = Math.round(parseFloat($o.css(aStyles[i])) * nScale) + 'px';
66+
oStyles[aStyles[i]] = ((aStyles[i]==='width') ? nTargetWidth : Math.round(parseFloat($o.css(aStyles[i])) * nScale)) + 'px';
6767
}
6868
$o.css(oStyles);
6969
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scalem",
3-
"version": "1.0.6",
3+
"version": "1.1.0",
44
"description": "A lightweight jQuery plugin to make any element scalable (responsive).",
55
"keywords": [
66
"jquery-plugin",

0 commit comments

Comments
 (0)