InAppBrowser causes TABS to get cut off after it is closed

I have a tabbed application which has a chat/messages functionality in one of the tabs. If there is a file attachment in the tab and you click it, it opens an InAppBrowser to show you the preview. The problem is that when I close the inappbrowser the tabs are 1/2 chopped off. If i rotate the app to landscape and back to portrait, the tabs auto resize and fix themselves. Any suggestions on how to fix it?