SUP-3480 -- fix hide widget element height

get correct widget element height