edesiocs / ingatan

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

Word wrap of the answer area in quiz time does not work at embedded answer fields. #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:
1. Create a flexi question, and write a nonsense sentence in the answer text 
area without any line breaks.
2. Insert a simple text field between words at at least one position. Put a 
word inside the answer field (simple text field has its width set based on 
average possible answer length).
3. Go into quiz mode, and horizontally resize the window.

You will notice that the words to the far right are clipped across the window 
frame before they are wrapped onto the new line. This effect is sometimes more 
severe than other times, and is especially bad when the answer field is quite 
wide.

From my testing I have found that the size of the JTextPane is correctly within 
the viewport of the JScrollPane. It seems to be a problem with the word 
wrapping of the JTextPane.

This is a problem for 'fill in the answer' type questions where answer fields 
are necessarily embedded within sentences.

Original issue reported on code.google.com by tom.eve...@gmail.com on 18 Jul 2010 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by tom.eve...@gmail.com on 19 Jul 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Fixed in revision e68aaef930.

Original comment by tom.eve...@gmail.com on 19 Jul 2010 at 3:41

GoogleCodeExporter commented 9 years ago

Original comment by tom.eve...@gmail.com on 19 Jul 2010 at 3:43