plandem / lwrte

Export from Google Code. Lightweight Rich Text Editor (RTE / WYSIWYG) for jQuery
https://code.google.com/p/lwrte/
0 stars 0 forks source link

Standard style will not show right border #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. do not specify any style for text area
2. Observe right border is missing

The problem is that the width does not take into account the border width.
So if you specify a width of 100%, and a border of 1px,
then the box will not render as expected.

Possible solution:

add an additional wrapper div to deal with the width. This example is a bit
cumbersome, but should give an idea of what I mean:

$j(textarea).wrap(
                    $j('<div></div>')
                        .addClass('rte-width-wrapper').width(this.width)
                    .append($j('<div></div>').addClass('rte-zone'))
                );

Original issue reported on code.google.com by eamonnoc...@gmail.com on 24 May 2010 at 3:39