[js-embedded-discovery] 02/03: EDS-78 rescale on height > maxHeight doesn't work

Rod Widdowson rdw at steadingsoftware.com
Thu Jan 19 10:01:48 EST 2017


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository js-embedded-discovery.

View the commit online:
http://git.shibboleth.net/view/?p=js-embedded-discovery.git;a=commit;h=02bbd2f8fb17ff1e0289e4e39036fee917246256

commit 02bbd2f8fb17ff1e0289e4e39036fee917246256
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Jan 19 14:13:08 2017 +0000

    EDS-78 rescale on height > maxHeight doesn't work
    
    https://issues.shibboleth.net/jira/browse/EDS-78
    
    Reviewed and applied supplied patch.
---
 src/javascript/idpselect.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/javascript/idpselect.js b/src/javascript/idpselect.js
index 87a9d42..3a1db41 100644
--- a/src/javascript/idpselect.js
+++ b/src/javascript/idpselect.js
@@ -632,7 +632,7 @@ function IdPSelectUI() {
         }
         if (h> maxHeight) {
             w = (maxHeight/h) * w;
-            w = maxHeight;
+            h = maxHeight;
         }
             
         img.setAttribute('width', w);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list