openlectures / ol-youtube

YouTube manipulation for OL
0 stars 1 forks source link

Console text field should wrap text #20

Closed kenlimmj closed 11 years ago

kenlimmj commented 11 years ago

Current behaviour:

If the printed text string is longer than the width of the text area, it will scroll in the x-direction to overflow.

Expected behaviour:

x-overflow should be disabled. If a text string is longer than the width of the text area, it should automatically break to the next line.

ongzexuan commented 11 years ago

I can prevent the horizontal scroll bar from ever appearing. Need to make text wrap damn :P

kenlimmj commented 11 years ago

Am I correct to say that the thing is a jtextarea? If so then

textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);

should do the job

linanqiu commented 11 years ago

Yup forgot to add those things. THanks!