SideBySide2: Center content in the browser window

The view runs at a fixed maxium width of 1484 pixels.  If the browser
window is wider than this width, center the view in the middle and
distribute the space evenly on either side.

Change-Id: I4c557c7a36e07a5b6ef9d4f2b725c0ea8d336a3f
This commit is contained in:
Shawn Pearce
2013-12-11 00:16:35 -08:00
parent d1451ead6b
commit 875590301a

View File

@@ -17,7 +17,14 @@ limitations under the License.
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:d='urn:import:com.google.gerrit.client.diff'>
<g:FlowPanel>
<ui:style>
.sbs2 {
margin-left: auto;
margin-right: auto;
width: 1484px;
}
</ui:style>
<g:FlowPanel styleName='{style.sbs2}'>
<d:Header ui:field='header'/>
<d:DiffTable ui:field='diffTable'/>
</g:FlowPanel>