Remove scrollbar from Commit Message

Now that the commit message must be explicitly selected
for display in the PatchScreen header, it makes sense to
assume that they want to see the whole thing and are
willing to vertical sacrifice some screen real estate to
do that.

Change-Id: I51466bbb90666f5b74d3b007b89d4cae7205330e
This commit is contained in:
Martin Fick
2011-06-15 18:28:20 -06:00
parent dd7a88b074
commit 3eeaa04459
2 changed files with 2 additions and 13 deletions

View File

@@ -26,20 +26,9 @@ public class CommitMessageBlock extends Composite {
private final HTML description;
public CommitMessageBlock() {
this(null);
}
public CommitMessageBlock(String height) {
description = new HTML();
description.setStyleName(Gerrit.RESOURCES.css().changeScreenDescription());
if (height != null) {
ScrollPanel scrollPanel = new ScrollPanel();
scrollPanel.setHeight(height);
scrollPanel.add(description);
initWidget(scrollPanel);
} else {
initWidget(description);
}
initWidget(description);
}
public void display(final String commitMessage) {