fixed bugs

resize wrong when change layout
change type error for a item key first time
hot fixed bug

player mode when more than one code item