Author Topic: list-buffers column sizes  (Read 873 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1795
  • Hero Points: 175
  • Text
list-buffers column sizes
« on: July 25, 2016, 07:06:02 pm »
What should auto-size columns do?


In list-buffers, with "auto-size columns" unchecked, Slick makes the column widths on all 3 tabs the same.
I'd expect that it allow the user to change the widths on all three tabs independently.


When checked, then it auto-sizes to fit the names / paths on each tab separately.
But internally when switching tabs it does something like


x = oldcol.getColWidth();
newcol.setColWidths(x) ;
newcol._TreeSizeColumnToContents

attempting to copy the column widths from one tab to the next, but then undoing that effort with the auto-size.


So, essentially "setColWidth" ends up doing nothing -- you can comment out its code and list-buffers behavior stays the same.






jporkkahtc

  • Senior Community Member
  • Posts: 1795
  • Hero Points: 175
  • Text
Re: list-buffers column sizes
« Reply #1 on: July 25, 2016, 07:09:38 pm »
I found this when adding "Size" and "modified timestamp" to the Buffers tab.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2359
  • Hero Points: 131
Re: list-buffers column sizes
« Reply #2 on: July 25, 2016, 08:06:40 pm »
We'll take a look at this.