fix scroll bug is page is using SVG#1331
fix scroll bug is page is using SVG#1331dmitrydvorkin wants to merge 1 commit intomootools:masterfrom
Conversation
…e page so code can't find document.body and can't scroll
|
@dmitrydvorkin thank you for sending a fix suggestion! Cheers |
|
@dmitrydvorkin thank you! Could you guide me in that page and explain what I should do to get the wrong behaviour? (if possible to remove the extra HTML not relevant to the problem would be awesome!) |
|
simple: just try to press submit button at the end of the page. by my humble opinion condition "par.getSize().y != par.getScrollSize().y" is not really needed bacause in most cases you'll need to scroll whole document, not the DIV with overflow-y enabled. in other case (you need to scroll DIVs) problem too complex and I can't offer the solution to mootools developers. |
|
also you may see that width of some images is not integer. It's my designer requirement and it's allowed in css. |
|
@dmitrydvorkin thank you for feedback. I would like to make a example that we can use as a test case, so we can make tests for it and fix the problem. Something like this: http://jsfiddle.net/9ezmb51z/ If you have the time would be great if you can adapt that jsFiddle to reproduce the problem. It has Thank you! |
|
look: I just added |
par.getSize().ygives float after More >= 1.5.1 and SVG is used on the page so code can't finddocument.bodyand can't scroll