Fixes resize behaviour for API browser.