diff thingy.js @ 8:f3f56cc75bfd

Code column is now colored differently.
author Atul Varma <varmaa@toolness.com>
date Mon, 05 Jan 2009 18:40:10 -0800
parents 0d5b69cd01db
children 5418d21d7751
line wrap: on
line diff
--- a/thingy.js	Mon Jan 05 17:49:59 2009 -0800
+++ b/thingy.js	Mon Jan 05 18:40:10 2009 -0800
@@ -63,6 +63,11 @@
       var code = $('<div class="code">');
       code.text(this.code);
       $("#content").append(code);
+
+      var docsSurplus = docs.height() - code.height();
+      if (docsSurplus > 0)
+        code.css({paddingBottom: docsSurplus + "px"});
+
       $("#content").append('<div class="divider">');
     });
 };