Please only compute each different expression once. Like...
int b = (_anchor_height - TotalItemHeight) / 2 + _padding + _corner_radius;
int t = b + _offset_correction;
_top_space->SetMinimumHeight(t);
_top_space->SetMaximumHeight(t);
_bottom_space->SetMinimumHeight(b);
_bottom_space->SetMaximumHeight(b);
There are a lot of identical expressions:
38 + _top_space- >SetMinimumHeig ht((_anchor_ height - TotalItemHeight) / 2 + _padding + _corner_radius + _offset_ correction) ; >SetMaximumHeig ht((_anchor_ height - TotalItemHeight) / 2 + _padding + _corner_radius + _offset_ correction) ; space-> SetMinimumHeigh t((_anchor_ height - TotalItemHeight) / 2 + _padding + _corner_radius); space-> SetMaximumHeigh t((_anchor_ height - TotalItemHeight) / 2 + _padding + _corner_radius);
39 + _top_space-
40 +
41 + _bottom_
42 + _bottom_
Please only compute each different expression once. Like...
int b = (_anchor_height - TotalItemHeight) / 2 + _padding + _corner_radius; >SetMinimumHeig ht(t); >SetMaximumHeig ht(t); space-> SetMinimumHeigh t(b); space-> SetMaximumHeigh t(b);
int t = b + _offset_correction;
_top_space-
_top_space-
_bottom_
_bottom_