From ed6b4c5009ec83a849626c20995e561bcaa7e90a Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 6 Dec 2012 19:14:41 +0900 Subject: [PATCH] Fix: project search link and name are underlined in change info block In the change info block, the project search link and name are underlined. The rest of the items in the block are not underlined, so this looks out of place. Fix it by replacing the HorizontalPanel with a FlowPanel, as is used on the project list page. Change-Id: I11f7ea6d777436acfaadaa6c6e52ed300a5b4223 --- .../java/com/google/gerrit/client/changes/ChangeInfoBlock.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeInfoBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeInfoBlock.java index 2faf857fd1..f891990861 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeInfoBlock.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeInfoBlock.java @@ -35,7 +35,6 @@ import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Grid; import com.google.gwt.user.client.ui.HTMLTable.CellFormatter; -import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.InlineLabel; import com.google.gwt.user.client.ui.TextBox; @@ -104,7 +103,7 @@ public class ChangeInfoBlock extends Composite { table.setWidget(R_OWNER, 1, AccountLink.link(acc, chg.getOwner())); - final HorizontalPanel p = new HorizontalPanel(); + final FlowPanel p = new FlowPanel(); p.add(new ProjectSearchLink(chg.getProject())); p.add(new InlineHyperlink(chg.getProject().get(), PageLinks.toProject(chg.getProject())));