Fixed panel resizing behavior not taking account of max-width properly