Adapt to tablet height