Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
resizeCell: function(ref, dup) { var fullWidth = ref.offsetWidth; var innerWidth = 0; dup.style.width = innerWidth + "px"; while (dup.offsetWidth < fullWidth) { innerWidth++; dup.style.width = innerWidth + "px"; } }
This paste will be private.
From the Design Piracy series on my blog: