fixed sizer issue on mac osx