From d80f1e36b72435aa94d9de8811eb43e184eb435c Mon Sep 17 00:00:00 2001 From: hansonr Date: Tue, 8 Jan 2019 23:33:45 -0600 Subject: [PATCH 1/1] comment added in relation to status bar --- src/jalview/gui/AlignFrame.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 7183f7f..8f7b61b 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -992,7 +992,12 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, @Override public void setStatus(String text) { - statusBar.setText(text); + // BH note: If text width and height are 0, then the layout manager + // will dispense of it and change the frame height. + // In JavaScript, we use \u00A0 -- unicode "non-breaking space" + // which is the unicode encoding of   + + statusBar.setText(text.length() == 0 ? " " : text); } /* -- 1.7.10.2