constrained panel height on window resize