fix size calculation to consider label width