mac build
fix coordinate system
fix resize