Added extra space in editor, since we cannot resize already created balloon.
This commit is contained in:
@@ -77,7 +77,13 @@ class EditSignatureBalloon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private JPanel createBalloonPanel() {
|
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);
|
panel.add(editor.getComponent(), BorderLayout.CENTER);
|
||||||
|
|
||||||
JPanel toolbar = new JPanel(new FlowLayout(FlowLayout.RIGHT));
|
JPanel toolbar = new JPanel(new FlowLayout(FlowLayout.RIGHT));
|
||||||
@@ -126,7 +132,7 @@ class EditSignatureBalloon {
|
|||||||
settings.setFoldingOutlineShown(false);
|
settings.setFoldingOutlineShown(false);
|
||||||
settings.setRightMarginShown(false);
|
settings.setRightMarginShown(false);
|
||||||
settings.setAdditionalPageAtBottom(false);
|
settings.setAdditionalPageAtBottom(false);
|
||||||
settings.setAdditionalLinesCount(0);
|
settings.setAdditionalLinesCount(2);
|
||||||
|
|
||||||
if (editor instanceof EditorEx) {
|
if (editor instanceof EditorEx) {
|
||||||
((EditorEx)editor).setEmbeddedIntoDialogWrapper(true);
|
((EditorEx)editor).setEmbeddedIntoDialogWrapper(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user