Closed #4597: set doLayout function of ccui to private function

set doLayout function of ccui to private function