Hello Sébastien!
There is a bug when centering a window with the document scrolled
horizontally and not scrolled vertically.
The function that controls the scroll checks if there is a "
window.document.documentElement" and a "documentElement.scrollTop". When
documentElement.scrollTop exists and is equal to 0 (when the window is not
vertically scrolled) it assumes that property does not exist. In this case
the documentElement.scrollLeft value will not be taken into consideration
while centering the window.
In line 1363 of window.js version 1.0:
if (w.document.documentElement && documentElement.scrollTop) {
should be:
if (w.document.documentElement && (documentElement.scrollTop ||
documentElement.scrollLeft)) {
Best regards,
Hugo Madureira
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com