From b7eecd32a53025235ffdd5de0e24bdec32821e73 Mon Sep 17 00:00:00 2001 From: Ned Kahvo Date: Mon, 6 Jun 2011 23:18:12 -0400 Subject: [PATCH] - using the div.board-outline height seems to be the most accurate .offset() on a floating element didn't return the right results, I assume a margin/padding/position issue is to blame but this works too. --- client/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/script.js b/client/script.js index 5e899fe..6567bba 100644 --- a/client/script.js +++ b/client/script.js @@ -609,7 +609,7 @@ $(function() { createCard( 'card' + uniqueID, '', - 58, 460, + 58, $('div.board-outline').height(),// hack - not a great way to get the new card coordinates, but most consistant ATM rotation, randomCardColour()); });