Fix onLayoutDone behavior on IE