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

Already on GitHub? Sign in to your account

Update getDimensions function to ensure that w[] has non-zero values #15

wants to merge 1 commit into


None yet
1 participant

yellis commented Oct 11, 2012

Ran into a bug using simplemodal on IE9 where wndw.Width() and .height() as used in the getDimensions function returned zero. This resulted in top/left being set to the wrong numbers, modal being off-center. Corrected by checking in getDimensions that values are > 0 before initializing the w[] array with them.

@yellis yellis Update getDimensions function to ensure that w[] array is not storing…
… non-zero values (can happen with IE sometimes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment