Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// init the dialog container $("#dialog").dialog({autoOpen: false, bgiframe: true, position: "center"}); var height = $("#dialog").parent().height(); if (height > $(window).height()) {height = $(window).height() / 1.2}; $("#dialog").data("height.dialog", height).dialog("open");
This paste will be private.
From the Design Piracy series on my blog: