Fixed resizable bug when set with layout.set()