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

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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: 2620
  • Hero Points: 210
  • 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: 2897
  • Hero Points: 153
Re: list-buffers column sizes
« Reply #2 on: July 25, 2016, 08:06:40 PM »
We'll take a look at this.