Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:kee-org/KeeFox
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed May 20, 2018
2 parents 2b3915d + 26bccca commit 14eb858
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Firefox addon/KeeFox/chrome/content/commonDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ var keeFoxDialogManager = {
}
loadingPasswords.setAttribute("value", keefox_org.locale.$STR("httpAuth.default"));
keeFoxDialogManager.updateTimer = setInterval(function() { keeFoxDialogManager.updateDialog(); }, 1000);
window.sizeToContent();
return;
}

Expand All @@ -604,11 +605,6 @@ var keeFoxDialogManager = {
var launchKeePassButton = document.getElementById("keefox-launch-kp-button");
launchKeePassButton.setAttribute("hidden", "true");

var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
var window = wm.getMostRecentWindow("navigator:browser") ||
wm.getMostRecentWindow("mail:3pane");

var dialogFindLoginStorage = {};
dialogFindLoginStorage.host = keeFoxDialogManager.host;
dialogFindLoginStorage.realm = keeFoxDialogManager.realm;
Expand All @@ -619,6 +615,8 @@ var keeFoxDialogManager = {
var requestId = keefox_org.findLogins(keeFoxDialogManager.originalHost,
null, keeFoxDialogManager.realm, null, null, null,
keeFoxDialogManager.username, keeFoxDialogManager.autoFill, dialogFindLoginStorage);

window.sizeToContent();
}
},

Expand Down Expand Up @@ -651,6 +649,7 @@ var keeFoxDialogManager = {
// set "no passwords" message
document.getElementById("keefox-autoauth-description")
.setAttribute("value", keefox_org.locale.$STR("httpAuth.noMatches"));
window.sizeToContent();
return;
}

Expand Down Expand Up @@ -777,6 +776,8 @@ var keeFoxDialogManager = {
box.removeChild(box.childNodes[0]);
}
box.appendChild(list);

window.sizeToContent();
}

if (matchedLogins[bestMatch] === undefined)
Expand Down

0 comments on commit 14eb858

Please sign in to comment.