This is my code that fires whenever the window is resized:
$(window).resize(function() { setDisplayBoardSize(); });
Fires fine when I re
This hapened to me also and didnt knew why, till i read your post. Seems like you were right the function is fired before i pressed maximize, so to fix this i used a litle delay.
$(window).resize(function() { setTimeout(function() { setDisplayBoardSize(); }, 100); });