taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

incorrect width calculation #101

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When you have text in textarea, and call jWYSIWYG, in line 331 clientWidth 
is textarea.width - scrollbar.width. On empty textarea, width is calculated 
correctly.

Add this line above this line:
element.style.overflow = "hidden";

this solves problem.

Original issue reported on code.google.com by krsti...@gmail.com on 14 Apr 2009 at 1:27

GoogleCodeExporter commented 8 years ago
Please provide sample page with bug.

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 2:35