WISE-Community / WISE-VLE--Deprecated--

Virtual Learning Environment (VLE) for the Web-based Inquiry Science Environment (WISE). *Note: deprecated and has been merged into the main 'WISE' repository*
8 stars 8 forks source link

Draw Tool Bug: Text using TextTool does not save in certain cases #308

Closed hirokiterashima closed 11 years ago

hirokiterashima commented 11 years ago

Jon, this was reported by folks at SRI. I'll forward you the email so you can follow up with them when you find a fix.

How to reproduce this bug:

  1. Go here, a draw step: http://wise.berkeley.edu/webapp/preview.html?projectId=5181&step=5.6
  2. Use the text tool and type something.
  3. Go to next step and come back.

The text that you wrote in step 2 is gone.

If you do this, the text is saved:

  1. Go here, a draw step: http://wise.berkeley.edu/webapp/preview.html?projectId=5181&step=5.6
  2. Use the text tool and type something.
  3. Use the circle tool and draw a circle.
  4. Go to next step and come back.

The text and the circle are saved.

hirokiterashima commented 11 years ago

Also, if you do this:

  1. Go here, a draw step: http://wise.berkeley.edu/webapp/preview.html?projectId=5181&step=5.6
  2. Use the text tool and type something.
  3. Use the text tool and type something else.
  4. Go to next step and come back.

The text on step 2 will be saved, but the text on step 3 will not be saved.

So it looks like if the text is the last thing you added, it won't be saved.

breity commented 11 years ago

Okay, this should be fixed now. It's a bug in svg-edit where updates to text elements do fire a changed event.

hirokiterashima commented 11 years ago

Yupp, looks great. thanks.