Skip to content

Commit

Permalink
need to wait for window load, before width() and height() calculated …
Browse files Browse the repository at this point in the history
…reliably
  • Loading branch information
jberryman committed Jul 7, 2012
1 parent 4c9c99c commit 35bb30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ eve.on("announce.done", function(){
});


$(function(){
$(window).load(function(){
$("#controls input[name=range]").val(broadcastRange);
$("#controls input[name=nodes]").val(numberNodes);

Expand Down

0 comments on commit 35bb30f

Please sign in to comment.