diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/SideBySideTable.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/SideBySideTable.java index ef3faf8713..964ba4b2b7 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/SideBySideTable.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/SideBySideTable.java @@ -34,6 +34,7 @@ import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.ui.Anchor; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTMLTable.CellFormatter; +import com.google.gwt.user.client.ui.HasVerticalAlignment; import com.google.gwt.user.client.ui.InlineLabel; import com.google.gwtexpui.safehtml.client.SafeHtml; import com.google.gwtexpui.safehtml.client.SafeHtmlBuilder; @@ -382,7 +383,11 @@ public class SideBySideTable extends AbstractPatchContentTable { CellFormatter fmt = table.getCellFormatter(); for (int i = 0 + offset; i < loopTo + offset; i++) { - insertRow(row + i); + // The overridden version of insertRow adds some css classes we don't + // want. + super.insertRow(row + i); + table.getRowFormatter().setVerticalAlign(row + i, + HasVerticalAlignment.ALIGN_TOP); int lineA = line.getStartA() + i; int lineB = line.getStartB() + i; if (numRows < 0) {