View Full Version : Adding components to tabs completely breaks layout

2 Jul 2015, 7:28 AM
I'm building a survey creating application. The user can choose the languages they want and when they get to the 'Add Questions' screen, the languages appear on separate tabs. I have it so the questions are added to each tab, using Portlets, one for each language, and they can also add/remove options, which are TextBoxes.

The problem I'm having is that when I add a question, or add an option to the first tab and want that to propagate to the other tabs, the layout of the Portlets on the other tabs is completely broken. It's fine on the tab I'm currently on, but it doesn't seem to run any kind of layout on the other tabs because they're not in view.

I've tried calling forceLayout()on the Portlets but that doesn't do anything. What is the correct way of updating the Portlets so that the layout is as it should be?