/*
 * #%L
 * GwtMaterial
 * %%
 * Copyright (C) 2015 - 2017 GwtMaterialDesign
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package gwt.material.design.client.ui.table;

import com.google.gwt.user.client.Window;
import gwt.material.design.client.jquery.JQueryExtension;
import gwt.material.design.client.ui.html.Div;

public class XScrollPanel extends Div {

    private Div scrollBar = new Div();

    public XScrollPanel() {
        super("x-scroll");

        add(scrollBar);

        super.setStyle("width: calc(100% - "+ JQueryExtension.scrollBarWidth() +"px)");
        setHeight("16px");
    }

    @Override
    public void setWidth(String width) {
        scrollBar.setWidth(width);
    }

    @Override
    public void setHeight(String height) {
        super.setHeight(height);
        scrollBar.setHeight(height);
    }
}

@@ -696,50 +696,8 @@
 e;%0A%0A
-import com.google.gwt.user.client.Window;%0A
 impo
@@ -956,24 +956,80 @@
 crollBar);%0A%0A
+        int barSize = JQueryExtension.scrollBarWidth();%0A
         supe
@@ -1064,44 +1064,21 @@
  - %22
+ 
 + 
-JQueryExtension.scrollBarWidth()
+barSize
  +
+ 
 %22px)
@@ -1103,11 +1103,25 @@
 ght(
-%2216
+(barSize + 1) + %22
 px%22)

Use exact bar height calculations.