ajisantoso / flexpaper

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

Annotation drawings are shifted when using getMarks and addMarks #301

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am persisting annotations by users. But when i relead the drawing annotations 
seems to be shift both in x and t

What steps will reproduce the problem?
Saving;
1. OnMarkChanged i save the annotations as follows
2. var marks = JSON.stringify(api.getMarkList());
3. the marks are send to the server and saved as a string
Reloading
4. When the document gets loaded i do this (little simplified):
5. function onDocumentLoaded(totalPages) 
   {
       var marks = '<%=Marks%>';
       if (marks !== '') {
                    var initialMarks = JSON.parse(marks);
                    api.addMarks(initialMarks);
                }
   }

Since the marks in addMarks are exactly the same as the one in getMarkList I 
expect the position of the drawing to be exactly the same. This is essential 
for annotations which are by very context specific by nature. If you need any 
assistance in reproducing the problem i would be happy to provide extra 
information.

Original issue reported on code.google.com by mmuur...@gmail.com on 29 Aug 2012 at 9:06

GoogleCodeExporter commented 9 years ago
This has been fixed since long, just closing this as this item had been 
forgotten

Original comment by erik.eng...@devaldi.com on 24 Mar 2013 at 7:45