diff --git a/resources/frontend_client/app/query_builder/visualization_table.react.js b/resources/frontend_client/app/query_builder/visualization_table.react.js
index 0b056460f1d2a3f34a4e14ada8db3e19f4bb46e5..f8ee552466cea5c01cd2bfe3fa63947f4fd5e376 100644
--- a/resources/frontend_client/app/query_builder/visualization_table.react.js
+++ b/resources/frontend_client/app/query_builder/visualization_table.react.js
@@ -80,11 +80,13 @@ export default React.createClass({
     calculateSizing: function(prevState) {
         var element = this.getDOMNode(); //React.findDOMNode(this);
 
-        // account for padding above our parent
+        // account for padding of our parent
         var style = window.getComputedStyle(element.parentElement, null);
         var paddingTop = Math.ceil(parseFloat(style.getPropertyValue("padding-top")));
+        var paddingLeft = Math.ceil(parseFloat(style.getPropertyValue("padding-left")));
+        var paddingRight = Math.ceil(parseFloat(style.getPropertyValue("padding-right")));
 
-        var width = element.parentElement.offsetWidth;
+        var width = element.parentElement.offsetWidth - paddingLeft - paddingRight;
         var height = element.parentElement.offsetHeight - paddingTop;
 
         if (width !== prevState.width || height !== prevState.height) {