Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed modals to absolute positioning from fixed with a 2em distance…

… from top of the window (bug 693416)
  • Loading branch information...
commit 72208e514a87dd98ef91c763b265bcb94ebf3ea2 1 parent 2ef20ed
Davor Spasovski authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 media/js/zamboni/global.js
View
6 media/js/zamboni/global.js
@@ -308,13 +308,13 @@ $.fn.modal = function(click_target, o) {
$modal.detach().appendTo("body");
var toX = ($(window).width() - $modal.outerWidth()) / 2,
- toY = ($(window).height() - $modal.outerHeight()) / 2;
+ toY = $(window).scrollTop() + 26; //distance from top of the window
$modal.css({
'left': toX,
- 'top': toY,
+ 'top': toY + 'px',
'right': 'inherit',
'bottom': 'inherit',
- 'position': 'fixed'
+ 'position': 'absolute'
});
return $modal;
};

1 comment on commit 72208e5

@potch
Collaborator

this looks good- r+!

Please sign in to comment.
Something went wrong with that request. Please try again.