Fixes app name scale calc

Before scaleMiddle was always being set to 0.5 (maxMiddleScale). Fixes
#491
This commit is contained in:
Chuck Horton
2015-11-09 10:20:19 -08:00
parent 5420495bc6
commit c84f403e99

View File

@@ -47,8 +47,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// appName max size when condensed. The smaller the number the smaller the condensed size.
var maxMiddleScale = 0.50;
var auxHeight = heightDiff - detail.y;
var auxScale = (heightDiff / (1 - maxMiddleScale)) + maxMiddleScale;
var scaleMiddle = Math.max(maxMiddleScale, auxHeight / auxScale);
var auxScale = heightDiff / (1 - maxMiddleScale);
var scaleMiddle = Math.max(maxMiddleScale, auxHeight / auxScale + maxMiddleScale);
var scaleBottom = 1 - yRatio;
// Move/translate middleContainer