Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant