fix size computation for hover