Honestly it's just experience, you should try debugging on your own and understand when IE needs haslayout. 99% of the time, bugs are caused by either haslayout being set, or not set. It depends on the case.
If you want, you can try to debug it (so you can get a sense of it), if not then I'll debug it (it's a great learning experience if you debug it yourself)
Just wanted to give you a chance (I don't mind debugging it :))
Just remember, when in doubt, haslayout