From cf56f9fcf6d80084888bf46a3e15e14e461ca628 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Fri, 29 Mar 2013 21:10:17 +0000 Subject: [PATCH] Fixes cut off audio conference window when creating a video bridge conference. Reported by Emil Ivov. --- .../call/conference/AudioConferenceCallPanel.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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(); } /**