I would like my MaterialHeader, and MaterialNavBar to layout to the left side of the page. Setting paddlingLeft(0) does nothing. No matter what paddingLeft is set to, GWT Material Design will always set the paddingLeft to the width of the side Nav. I am trying to have the navbar extend from left to right, with the SideNav underneath the nav bar.
header = new MaterialHeader();
header.setPaddingLeft(0);
MaterialNavBar b = new MaterialNavBar();
b.setActivates("sideNav1");
MaterialSideNav sideNavBar = new MaterialSideNav(SideNavType.FIXED);
sideNavBar.setWidth(280);
sideNavBar.setTop(64);
sideNavBar.setId("sideNav1");
sideNavBar.setAlwaysShowActivator(true);
sideNavBar.setShowOnAttach(true);
header.add(navBar);
header.add(sideNav);
When running this code, the navbar is always moved to the right by 280 pixels. And the Header html element has a padding-left value of 280 instead of zero.
Inspecting the html shows the header with a padding-left = 280px. That is the same as the width that I set the Side Nav to.
Am I doing something wrong? Thanks