Permalink
Browse files

boxの高さ決め打ちになってたままだった

  • Loading branch information...
1 parent 31d8867 commit a1bf59de97a34528d59d21e7b18c41d0bbe1b12c @ToQoz committed Apr 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.simpleModal.js
@@ -13,7 +13,7 @@
width: $modalWindow.width(),
height: $modalWindow.height(),
position: 'absolute',
- top: +$(window).height() - 200,
+ top: +$(window).height() - +$modalWindow.height(),
left: '50%',
'background-color': '#CCCCCC',
'z-index': 11
@@ -40,7 +40,7 @@
}
// Internal
function showModal($target) {
- var movable = +$(window).height() - 200,
+ var movable = +$(window).height() - +$target.height(),
marginTop = 20,
move = movable - marginTop
$target.css({ top: movable + 'px' })

0 comments on commit a1bf59d

Please sign in to comment.