If the viewport changes, the right panel doesn't adjust. It seems to adjust fine when the right panel itself is resized, but not the viewport