fix label alignment on window expansion