clear adapt and some use const and remove some virtual
add virtual on setgemetry and fix window max size bug