Author Topic: how to resize the drop-down file list  (Read 1991 times)

acmemike

  • Community Member
  • Posts: 27
  • Hero Points: 1
how to resize the drop-down file list
« on: February 11, 2017, 04:34:43 pm »
Running SE v21.0.1.0 64-bit with latest hot fix.  The upper-right of the editor window has a down-pointing arrow that can be used to list open files (shows name, path).  The window is very very small and attempts to drag a corner and make larger fail.  How do I make this window larger so it is usable?  Thanks!!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 267
Re: how to resize the drop-down file list
« Reply #1 on: February 11, 2017, 05:40:25 pm »
Please post a picture. Thanks

acmemike

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: how to resize the drop-down file list
« Reply #2 on: February 11, 2017, 06:16:47 pm »
attached image

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 267
Re: how to resize the drop-down file list
« Reply #3 on: February 12, 2017, 05:37:11 pm »
This dialog tries to auto-size itself but that looks too small. As a test, try starting SlickEdit with a new config, open a bunch of files, and display this dialog.

vs +new -sc <tempdir-newconfig>

If the dialog is larger, I'll want to try one more thing.

Graeme

  • Senior Community Member
  • Posts: 1991
  • Hero Points: 228
Re: how to resize the drop-down file list
« Reply #4 on: February 13, 2017, 09:41:38 am »

Graeme

  • Senior Community Member
  • Posts: 1991
  • Hero Points: 228
Re: how to resize the drop-down file list
« Reply #5 on: February 13, 2017, 09:46:42 am »
Running SE v21.0.1.0 64-bit with latest hot fix.  The upper-right of the editor window has a down-pointing arrow that can be used to list open files (shows name, path).  The window is very very small and attempts to drag a corner and make larger fail.  How do I make this window larger so it is usable?  Thanks!!

Make sure you've got hotfix 3.  "List installed hotfixes" won't tell you if hotfix 3 has been installed.  If in doubt, install it again.  I found that hotfix 3 fixed the problem although it still had an unnecessary scrollbar.

acmemike

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: how to resize the drop-down file list
« Reply #6 on: February 13, 2017, 12:13:02 pm »
I had hotfix 3 installed, reinstalled anyway, no improvement.  Will run experiment Clark suggests and report back.  Thanks.

acmemike

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: how to resize the drop-down file list
« Reply #7 on: February 13, 2017, 12:20:25 pm »
running with vs +new -sc <tempdir-newconfig> is actually worse, see attached.  Note that 20.0.2.1 does not have this problem.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 267
Re: how to resize the drop-down file list
« Reply #8 on: February 15, 2017, 01:20:53 pm »
After you did the +new, what steps did you do to cause this dialog size to be too small? I can't seem to reproduce this.

What's the resolution of your monitor?

Did you open a previous workspace? I have a suspicion that it may have something to do with auto-restore information but it's just a guess.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 267
Re: how to resize the drop-down file list
« Reply #9 on: February 15, 2017, 03:38:39 pm »
I've been able to reproduce an issue where the list missing the last entry but you're original problem is much worse. I always see at least one entry though. You're last picture shows that you're not even setting one full entry. I'll look into to fixing the problem I'm seeing.

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • Text
Re: how to resize the drop-down file list
« Reply #10 on: February 15, 2017, 08:55:52 pm »
This problem, though a little different than as shown by acmemike, repros for me.
Repro:
clean config
open 1 file with a long path.
Split window as shown.
Make slick narrow enough that the list needs an h-scroller.

acmemikes example above doesn't seem to include a scrollbar.


Slick appears to make this dropdown taller when it thinks there will be an h-scroller, but it doesn't make it tall enough - the scroll bar height seems to be more than expected.


Mike, what does it look like when you have about 5 buffers open?
Is it still too small?


acmemike

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: how to resize the drop-down file list
« Reply #11 on: February 15, 2017, 09:42:06 pm »
sorry for the delay.

>> After you did the +new, what steps did you do to cause this dialog size to be too small?
I opened the project I am using (the files that were previously opened were automatically opened again).  I use two edit windows, split vertically (as in the images).  The down-arrow at upper-right of either view window has the issue.

>> What's the resolution of your monitor?
I have two monitors, each is 1920x1080

>> Did you open a previous workspace?
Yes.  But note this happens with several workspaces, I'm guessing probably all workspaces.  VS 20.0.2.1 does not have this issue (tested with same workspaces).

acmemike

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: how to resize the drop-down file list
« Reply #12 on: February 15, 2017, 09:45:45 pm »
with five buffers open the list of open files is more readable, only the last-listed entry is truncated.  Attaching image...

thanks for looking at this!

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • Text
Re: how to resize the drop-down file list
« Reply #13 on: February 15, 2017, 10:30:47 pm »
So, in DocumentTabFileListResize(),
   required_height := (numFiles+1+hasScrollBar)*line_height + 2*ctl_file_list.p_SpaceY;

It has "numFiles+1".
What is the "+1" fudge-factor?
Is that for the buttons at the top of the list?


Seems like this should be
   required_height := (numFiles)*line_height + 2*ctl_file_list.p_SpaceY + ctl_file_list.p_ButtonsHeight + ctl_file_list.p_ScrollBarHeight * hasScrollBar;



I also found that on my Win10 box, while the list is tall enough to show the text, the bottom edge of the list box itself was cutoff. Changing that line to
required_height := (numFiles+hasScrollBar)*line_height + 2*ctl_file_list.p_SpaceY+55;

Where the value of "p_SpaceY" is 50 --- 55 is exactly the minimum amount to add to fix the problem.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4035
  • Hero Points: 267
Re: how to resize the drop-down file list
« Reply #14 on: February 16, 2017, 03:17:23 am »
We noticed the issue with the math. That will be fixed in 21.0.2. I'm still not sure why the dialog was way too small. Not just off by the header. We're still looking into this though. Maybe we will find something else wrong with it.