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

Commit

Permalink
Fix login dialog positioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 22, 2015
1 parent 348e4ab commit d40120e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -502,7 +502,7 @@ Class.create("Modal", {
if(dTitle.getStyle('position') == 'absolute'){
var innerH = 0;
$A(dContent.childNodes).each(function(c){
if(c.getHeight) innerH += c.getHeight();
if(c.getHeight && c.visible()) innerH += c.getHeight();
});
var topPadding = Math.min(winHeight*25/100, Math.max(0, parseInt((winHeight - innerH)/2)));
dContent.setStyle({paddingTop: topPadding + 'px'});
Expand Down

0 comments on commit d40120e

Please sign in to comment.