Fixes cut off audio conference window when creating a video bridge conference. Reported by Emil Ivov.

cusax-fix
Yana Stamcheva 14 years ago
parent cfb8e1e091
commit cf56f9fcf6

@ -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();
}
/**

Loading…
Cancel
Save