From: hansonr Date: Wed, 9 Jan 2019 05:33:45 +0000 (-0600) Subject: comment added in relation to status bar X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~68^2~327 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d80f1e36b72435aa94d9de8811eb43e184eb435c;p=jalview.git comment added in relation to status bar --- 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); } /*