Fixes #4362: make directive parameter tab height adapt to screen