curiousdannii/parchment — pull request #2 by apsillers (2011-12-30 18:07:46+00:00)
Title: Fixed webkit scrolling bug

As i mentioned on the Google Group discussion, WebKit provides the string "normal" instead of a pixel value for the line-height CSS property, so parseFloat returns NaN. This breaks the scollTop call in structio/input.js. My fix accepts "normal", a pixel value, or a ratio for line-height. Note that I'm just making a guess of 140% of font-size for "normal", but it seem to work okay. You may revise the guess if you like, but there's no "good" way to get the actual ratio or pixel value unless it's explicitly set in the CSS.

For this commit, I did not rebuild the minified files, because I'm sending you another pull request shortly, and I don't know which ones you'll accept (so I won't rebuild incompatible binaries for each separate pull request).