bug fix size calculation for CompPanels