Fix complete tab collapse

Disallow negative 'ratio' values causing tabs collapse