Added extra space in editor, since we cannot resize already created balloon.

This commit is contained in:
Evgeny Gerashchenko
2012-08-15 01:24:54 +04:00
parent 44a6fb1f6f
commit 784ac19ef9
@@ -77,7 +77,13 @@ class EditSignatureBalloon {
}
private JPanel createBalloonPanel() {
JPanel panel = new JPanel(new BorderLayout());
JPanel panel = new JPanel(new BorderLayout()) {
@Override
public Dimension getPreferredSize() {
Dimension preferredSize = super.getPreferredSize();
return new Dimension((int) (preferredSize.width * 1.4), preferredSize.height);
}
};
panel.add(editor.getComponent(), BorderLayout.CENTER);
JPanel toolbar = new JPanel(new FlowLayout(FlowLayout.RIGHT));
@@ -126,7 +132,7 @@ class EditSignatureBalloon {
settings.setFoldingOutlineShown(false);
settings.setRightMarginShown(false);
settings.setAdditionalPageAtBottom(false);
settings.setAdditionalLinesCount(0);
settings.setAdditionalLinesCount(2);
if (editor instanceof EditorEx) {
((EditorEx)editor).setEmbeddedIntoDialogWrapper(true);