From c41fb5c4448bb657b7478cef551d3377aa290b88 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 18 Aug 2006 08:52:28 +0000 Subject: [PATCH] only set new layout if 2 buttons visible --- src/jalview/gui/WebserviceInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/WebserviceInfo.java b/src/jalview/gui/WebserviceInfo.java index ccda9d1..4292687 100755 --- a/src/jalview/gui/WebserviceInfo.java +++ b/src/jalview/gui/WebserviceInfo.java @@ -372,8 +372,10 @@ public class WebserviceInfo extends GWebserviceInfo buttonPanel.remove(cancel); buttonPanel.add(showResultsNewFrame); if (serviceCanMergeResults) + { buttonPanel.add(mergeResults); - buttonPanel.setLayout(new GridLayout(2,1,5,5)); + buttonPanel.setLayout(new GridLayout(2, 1, 5, 5)); + } buttonPanel.validate(); validate(); if (viewResultsImmediatly) -- 1.7.10.2