SideBySide2: remove unnecessary padding

There was a bit too much space at the bottom of the window when
SideBySide2 is open and the headers are "scrolled off".  Its caused
by using 10px in the padding computation.  5px is sufficient to keep
everything in view. Use 5px, giving 5px back to CM3 and the rest of
the UI.

Change-Id: Ic77c4f63d014d4d813bf0d81c4b7e963d11ae6c1
This commit is contained in:
Shawn Pearce
2013-11-21 01:49:18 -08:00
parent feebf7cc98
commit d55eef420b

View File

@@ -1242,7 +1242,7 @@ public class SideBySide2 extends Screen {
int rest = Gerrit.getHeaderFooterHeight()
+ header.getOffsetHeight()
+ diffTable.getHeaderHeight()
+ 10; // Estimate
+ 5; // Estimate
int h = Window.getClientHeight() - rest;
cmA.setHeight(h);
cmB.setHeight(h);