Skip to content

Commit

Permalink
changed height, need to create single authority on card properties
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminplee committed Mar 18, 2012
1 parent ab95389 commit 4c5cac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ a:hover, a:active {
.draggable {
position: absolute;
width: 150px;
height: 150px;
height: 75px;
margin: 10px;
padding: 5px;
}
Expand Down
6 changes: 3 additions & 3 deletions web/js/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
$(function() {
var grid_size = 170; // article width + 2 * margin (need to make this not known to js)
var grid_size = {x: 170, y: 95}; // article width + 2 * margin (need to make this not known to js)

$(".draggable").draggable({
grid: [grid_size, grid_size],
grid: [grid_size.x, grid_size.y],
stack: ".draggable"
});

// just for examples
$("article").each(function(i) {
$(this).css({"left": i * grid_size});
$(this).css({"left": i * grid_size.x});
});
})

0 comments on commit 4c5cac0

Please sign in to comment.