Index: trunk/parsers/wikidom/lib/jquery.flow.js |
— | — | @@ -164,9 +164,10 @@ |
165 | 165 | console.time( 'flow' ); |
166 | 166 | |
167 | 167 | var $this = $(this), |
| 168 | + $ruler = $( '<div></div>' ).appendTo( $(this) ), |
168 | 169 | lines = $.flow.getLines( |
169 | 170 | $.flow.getWords( text, $( '<div class="editSurface-line"></div>' ).appendTo( $this )[0] ), |
170 | | - $this.innerWidth() |
| 171 | + $ruler.innerWidth() |
171 | 172 | ); |
172 | 173 | |
173 | 174 | // Flow |
Index: trunk/parsers/wikidom/lib/jquery.editSurface.css |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | |
18 | 18 | #selection p { |
19 | 19 | margin: 0; |
20 | | - padding: 0em; |
| 20 | + padding: 2em; |
21 | 21 | } |
22 | 22 | |
23 | 23 | .editSurface-container { |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | .editSurface-paragraph { |
32 | | - padding: 0em; |
| 32 | + padding: 2em; |
33 | 33 | } |
34 | 34 | |
35 | 35 | .editSurface-line { |