Skip to content

Commit

Permalink
fix to row header
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnfarrell committed Aug 26, 2017
1 parent 551c38c commit 6d5ecbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -9,6 +9,7 @@ CHANGES
Fixed setup.py error that stopped pip install
Added column coloring functionality
Fixed slow adding of multiple rows
Fix to display row numbers properly for large tables

------
0.8.1
Expand Down
11 changes: 6 additions & 5 deletions pandastable/headers.py
Expand Up @@ -488,17 +488,18 @@ def redraw(self, align='w', showkeys=False):
cols = [r]
xpos = [xstart]
w = np.sum(widths)
if w>maxw:
w=maxw
elif w<45:
w=45
else:
rows = [i+1 for i in v]
cols = [rows]
w=45
l = max([len(str(i)) for i in rows])
w = l * scale + 6
widths = [w]
xpos = [xstart]

if w>maxw:
w = maxw
elif w<45:
w = 45
if self.width != w:
self.config(width=w)
self.width = w
Expand Down

0 comments on commit 6d5ecbb

Please sign in to comment.