Revert "fix: ListTable without borders. fixes #152."

This reverts commit 89f54e3be49dc62e1d20bf3788dcdf837cde7424.
This commit is contained in:
Christopher Jeffrey 2015-07-22 02:31:45 -07:00
parent d64e5f04ff
commit 672efc5a3f

View File

@ -53,10 +53,11 @@ function ListTable(options) {
this.on('scroll', function() {
self._header.setFront();
self._header.rtop = self.childBase + (self.border ? 1 : 0);
// if (!self.screen.autoPadding) {
// self._header.rtop = self.childBase;
// }
var visible = self.height - self.iheight;
self._header.rtop = 1 + self.childBase - (self.border ? 1 : 0);
if (!self.screen.autoPadding) {
self._header.rtop = 1 + self.childBase;
}
});
this.pad = options.pad != null