bug: fix can't center the custom view problem