Permalink
Browse files

word-wrapping emulation fixes for firefox

  • Loading branch information...
1 parent 869c592 commit b2f49dfcd764832d12bdac80382a38ae86774173 @MadRabbit committed Aug 2, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −2 main.sass
  2. +4 −1 src/mirror.coffee
View
@@ -9,8 +9,8 @@ div.osom-area
border: 0px solid transparent
overflow: none
color: transparent
- white-space: normal
- word-wrap: normal
+ white-space: pre-wrap
+ word-wrap: break-word
span.highlight
background: yellow
View
@@ -51,7 +51,10 @@ class Mirror extends Element
'margin-top,margin-left,margin-right,margin-bottom,'+
'padding-top,padding-left,padding-right,padding-bottom,'+
'border-top-width,border-left-width,border-right-width,'+
- 'border-bottom-width,white-space,word-wrap'))
+ 'border-bottom-width'))
+
+ console.log(@textarea.style('white-space'))
+ console.log(@textarea.style('word-wrap'))
@position(@textarea.position())
catch e

0 comments on commit b2f49df

Please sign in to comment.