Fixes a positioning issue with the UI component that is responsible for switching between OTRv3 Sessions

cusax-fix
Marin 13 years ago
parent 8942d902ee
commit 6b970fc177

@ -1576,7 +1576,18 @@ void initPluginComponents()
if (component.getComponent() == null)
continue;
centerPanel.add((Component)component.getComponent());
GridBagConstraints constraints = new GridBagConstraints();
constraints.anchor = GridBagConstraints.NORTHEAST;
constraints.fill = GridBagConstraints.NONE;
constraints.gridy = 0;
constraints.gridheight = 1;
constraints.weightx = 0f;
constraints.weighty = 0f;
constraints.insets = new Insets(0, 3, 0, 0);
centerPanel.add(
(Component)component.getComponent(), constraints);
}
}
GuiActivator.getUIService().addPluginComponentListener(this);
@ -1613,7 +1624,17 @@ public void pluginComponentAdded(PluginComponentEvent event)
contact, currentTransport.getResourceName());
}
}
centerPanel.add((Component) component.getComponent());
GridBagConstraints constraints = new GridBagConstraints();
constraints.anchor = GridBagConstraints.NORTHEAST;
constraints.fill = GridBagConstraints.NONE;
constraints.gridy = 0;
constraints.gridheight = 1;
constraints.weightx = 0f;
constraints.weighty = 0f;
constraints.insets = new Insets(0, 3, 0, 0);
centerPanel.add((Component) component.getComponent(), constraints);
this.centerPanel.repaint();
}

Loading…
Cancel
Save