File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change 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.
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 }
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments