Skip to content

Commit

Permalink
Fix auth dialog sizing error (#5315)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcunningh authored Dec 17, 2019
1 parent 4578e17 commit 6021a0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/hashauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ hashauth.init = function init(client, $) {
hashauth.requestAuthentication = function requestAuthentication (eventOrNext) {
var translate = client.translate;
hashauth.injectHtml();
var clientWidth = Math.min(400, $( '#container')[0].clientWidth);

var clientWidth = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;

clientWidth = Math.min(400, clientWidth);

$( '#requestauthenticationdialog' ).dialog({
width: clientWidth
Expand Down

0 comments on commit 6021a0a

Please sign in to comment.