Closed s-faychatelard closed 9 years ago
Hi, Thanks a lot for pointing this out.
I worked on this and came up with what I believe are the proper scenarios (depending on the value of horizontalAlign
and verticalAlign
). I extended your tests (thanks) to ensure each scenario is covered. Please check out this commit: https://github.com/sproutcore/sproutcore/commit/dc97727ca716d7c81c591834ca483a451aee634a
Thanks a lot, works like a charm
I'm having a strange issue with the latest 1.11.0.rc1, when resizing the parent of the scrollView with adjust the horizontalScrollOffset and verticalScrollOffset aren't recalculated directly. I have to scroll a bit.
Here is some UT to expose the problem, hope they will be helpful (written tests/views/scroll/methods.js)