Skip to content

Commit

Permalink
fix 'postit_height' css error when there's no postit
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellima committed Oct 6, 2011
1 parent 46d76cf commit 1b7cb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function defineHeight() {
var max_line_number = 0,
division_postit_per_line = 2,
backlog_postit_per_line = 6,
postit_height = $('.postit').get(0).clientHeight,
postit_height = $('.postit').get(0)? $('.postit').get(0).clientHeight : null,
postit_margin = 14,
// TODO: Make this work
// margin_top + margin_bottom == margin * 2
Expand Down

0 comments on commit 1b7cb13

Please sign in to comment.