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

Commit d40120e

Browse files
committed
Fix login dialog positioning.
1 parent 348e4ab commit d40120e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/gui.ajax/res/js/ui/prototype/class.Modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Class.create("Modal", {
502502
if(dTitle.getStyle('position') == 'absolute'){
503503
var innerH = 0;
504504
$A(dContent.childNodes).each(function(c){
505-
if(c.getHeight) innerH += c.getHeight();
505+
if(c.getHeight && c.visible()) innerH += c.getHeight();
506506
});
507507
var topPadding = Math.min(winHeight*25/100, Math.max(0, parseInt((winHeight - innerH)/2)));
508508
dContent.setStyle({paddingTop: topPadding + 'px'});

0 commit comments

Comments
 (0)