Commit 8b265400 authored by eustas@chromium.org's avatar eustas@chromium.org

DevTools: DataGrid: autosize filler when rows fit viewport.

BUG=398332

Review URL: https://codereview.chromium.org/429493002

git-svn-id: svn://svn.chromium.org/blink/trunk@179141 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4e06646c
......@@ -84,7 +84,7 @@ WebInspector.DataGrid = function(columnsArray, editCallback, deleteCallback, ref
this._topFillerRow = document.createElementWithClass("tr", "filler");
/** @type {!Element} */
this._bottomFillerRow = document.createElementWithClass("tr", "filler");
this._bottomFillerRow.style.height = "auto";
this.setVerticalPadding(0, 0);
/** @type {!Array.<!WebInspector.DataGrid.ColumnDescriptor>} */
this._columnsArray = columnsArray;
......@@ -214,7 +214,10 @@ WebInspector.DataGrid.prototype = {
setVerticalPadding: function(top, bottom)
{
this._topFillerRow.style.height = top + "px";
this._bottomFillerRow.style.height = bottom + "px";
if (top || bottom)
this._bottomFillerRow.style.height = bottom + "px";
else
this._bottomFillerRow.style.height = "auto";
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment