File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ngFitText" ,
3
- "version" : " 4.2.2 " ,
3
+ "version" : " 4.2.3 " ,
4
4
"main" : [
5
5
" dist/ng-FitText.min.js"
6
6
],
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ng-fittext" ,
3
- "version" : " 4.2.2 " ,
3
+ "version" : " 4.2.3 " ,
4
4
"description" : " An AngularJS directive for inflating web type" ,
5
5
"homepage" : " https://github.com/patrickmarabeas/ng-FitText.js" ,
6
6
"bugs" : " https://github.com/patrickmarabeas/ng-FitText.js/issues" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * ng-FitText.js v4.2.2
2
+ * ng-FitText.js v4.2.3
3
3
* https://github.com/patrickmarabeas/ng-FitText.js
4
4
*
5
5
* Original jQuery project: https://github.com/davatron5000/FitText.js
58
58
function calculate ( ) {
59
59
var ratio = ( calcSize * newlines ) / domElem . offsetWidth / newlines ;
60
60
return Math . max (
61
- Math . min ( ( parent [ 0 ] . offsetWidth - 6 ) * ratio * compressor ,
61
+ Math . min ( ( ( parent [ 0 ] . offsetWidth - ( parseFloat ( getComputedStyle ( parent [ 0 ] ) . paddingLeft ) + parseFloat ( getComputedStyle ( parent [ 0 ] ) . paddingRight ) ) ) - 6 ) * ratio * compressor ,
62
62
parseFloat ( maxFontSize )
63
63
) ,
64
64
parseFloat ( minFontSize )
You can’t perform that action at this time.
0 commit comments