Fixes bar button item style application, especially size by using the layout system to compute custom view size systematically.