diff --git a/src/net/java/sip/communicator/impl/gui/main/call/conference/AudioConferenceCallPanel.java b/src/net/java/sip/communicator/impl/gui/main/call/conference/AudioConferenceCallPanel.java index 3dd8f35b7..fc986dcf8 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/conference/AudioConferenceCallPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/conference/AudioConferenceCallPanel.java @@ -210,6 +210,12 @@ protected void viewForModelAdded( mainPanel.add(callPeerPanel.getComponent(), constraints); SwingUtilities.invokeLater(scrollToBottomRunnable); + + // If the parent window exists already try to adjust the size of the + // window to the new content. Fixes cut off conference window. + Window parentWindow = SwingUtilities.getWindowAncestor(mainPanel); + if (parentWindow != null) + parentWindow.pack(); } /** @@ -224,6 +230,12 @@ protected void viewForModelRemoved( * the user interface hierarchy of this instance. */ mainPanel.remove(callPeerPanel.getComponent()); + + // If the parent window exists already try to adjust the size of the + // window to the new content. + Window parentWindow = SwingUtilities.getWindowAncestor(mainPanel); + if (parentWindow != null) + parentWindow.pack(); } /**