artlantis / daisydiff

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

Word changed but showing removed and added & change in image showing improper in Chrome. #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Copy html.
2.Just change spelling of word (e.g. from word pages 'g' removed)
3.After compare It shows old word removed & new word added.
4.Another bug In Google Chrome change in image shows some below to actual image.

What is the expected output? What do you see instead?
Word should be show changed not removed & added.

What version of the product are you using? On what operating system?
version 1.0

see attached file.

Original issue reported on code.google.com by praful.p...@gmail.com on 16 Jul 2013 at 10:54

Attachments:

GoogleCodeExporter commented 9 years ago
Problem of Image solved.
Use below code in updateOverlays() function of diff.js.
                if (image.offsetTop && image.offsetLeft) { // this check is needed for IE
                    filter.style.marginTop = "-" + image.offsetHeight + "px";;
                    filter.style.marginLeft = image.offsetLeft + "px";
                }
                if(existingDivs.length == 0 ){
                    image.parentNode.appendChild(filter, image);
                }

Original comment by praful.p...@gmail.com on 17 Jul 2013 at 10:50