Upgrade jquery dimensions plugin. Correction to Cart js to match.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Owen Leonard 2009-02-26 14:14:36 -06:00 committed by Galen Charlton
parent d4ed156eb4
commit 7dd4724670
2 changed files with 17 additions and 3 deletions

View file

@ -409,9 +409,12 @@ function vShelfAdd() {
} }
function showCart(){ function showCart(){
var position = $("#cartmenulink").offset({border: true,margin:false}); var position = $("#cartmenulink").offset();
var top = position.top + $("#cartmenulink").outerHeight(); var top = position.top + $("#cartmenulink").outerHeight();
var left = position.left - 105; var menuWidth = 200;
var buttonWidth = $("#cartmenulink").innerWidth();
var buttonOffset = menuWidth - buttonWidth;
var left = position.left - buttonOffset;
$("#cartDetails").css("position","absolute").css("top",top); $("#cartDetails").css("position","absolute").css("top",top);
$("#cartDetails").css("position","absolute").css("left",left); $("#cartDetails").css("position","absolute").css("left",left);
$("#cartDetails").fadeIn("fast",function(){ $("#cartDetails").fadeIn("fast",function(){

File diff suppressed because one or more lines are too long