Make commit viewer diff list scrollable
commitb2401c8045004e2c87acf3d9b422de371cba4954
authorMichael Keppler <Michael.Keppler@gmx.de>
Sun, 19 Nov 2017 11:15:14 +0000 (19 12:15 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 20 Nov 2017 13:49:28 +0000 (20 14:49 +0100)
tree653fe1369fbebf66a3774046f88fb8f7a22157a3
parent9d32236c6ab1ffeeb409b5d7fe5e48c931d468e8
Make commit viewer diff list scrollable

If a commit contains a big number of files, then the commit viewer diff
list cannot be scrolled down to see more than the very first files. This
seems to be caused by the section widget, which automatically sizes the
file list to contain every item.

By providing a size hint, the section no longer expands to contain all
items, but only consumes the available space of the editor.

Bug: 527451
Change-Id: Ie6afee43842afd0b52585945ace2924837115f2a
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorPage.java