0

Taskbar keeps changing size when I switch desktop between monitors

treetoon 4 years ago updated by Michael (Ramen Software) 4 days ago 13

I do a lot of desktop switching between monitors, particularly a 4K TV and a 1080p monitor. When in 4K, Windows activates the scaling function which completely throws off and resizes the taskbar (i have it on the left side) to its default wider size. Any way to get 7+ Taskbar Tweaker to resize my taskbar back as small as possible every time I switch?

Thanks

+1

I might be able to implement that. When that happens, if you close and re-launch the tweaker, does the taskbar become narrow again?

Now this is a late reply, sorry about that.

When I restart the tweaker it doesn't make the taskbar narrow again, nothing happens. It has to be manually resized every single time, so I naturally just stopped using the feature and left it wide.

If I set Windows 10 scaling to 100% on both monitors it seems to preserve the width of the taskbar when switching back and forth between the monitor/tv. If the 1080p monitor is set to 100% scaling and I switch to the 4K TV's higher scaling like say 200%, then the taskbar initially preserves its low width. However, when I then switch back from the 4K TV to the 1080p monitor and Windows changes scaling from 200% to 100% that's when the taskbar is left in a large wide state, at which point it has to be manually resized again.

+1
Under review

I see, I believe that the reason is that the narrow width was saved in pixels, so it represented different logical widths for different scaling settings. I tried to improve it in version v5.15.2.2 beta, please try it and let me know if it solved the issue for you. You can get it here.

I tried it but it didn't solve it. Perhaps the issue is that when the desktop on the monitor is turned on Windows still has the old scaling from the previous monitor applied (say 175%), then after a second or two it changes the scaling to whatever the setting for that monitor is (100%), which probably overrides the tweaker.
+1

Maybe. If you're interested in further investigation, I can create a test build for you with extra logging which will help understand why the narrow width isn't being set.

+1

I have the same issue, for me the problem is that I remote into my work machine from my personal laptop and desktop. On my laptop I need to increase the scaling whereas on my desktop I can keep everything at 100%, and the behavior is exactly as treetoon described (even with the beta). If you have a test build with extra logging I would be happy to test it out.

+1

Here's a debug build:

https://www.dropbox.com/scl/fi/dwzrn58fuldqhiv6lj2g3/7tt_setup_5.15.2.2_narrow_taskbar_debug.exe?rlkey=mgekhecsqpla2kvduatpc4zpv&st=t9i0rqf5&dl=1

Please install it and use it for a while, and when the problem occurs, post the log. The log file can be found in the program folder, by default:

%LocalAppData%\Programs\7+ Taskbar Tweaker


The log file name is 7_taskbar_tweaker_debug_log.txt.

+1

Here is the log:

https://pastebin.com/raw/Byyu0sNE

I started with 100% scaling and the task bar as narrow as possible, then logged in from a different RDP session with 140% scaling, the bar was larger so I reduced it again, then started another session at 100% scaling and the bar was again bigger than before. I got the log before reducing the size again to the minimum it goes to.

Under review

I looked at the log, but it didn't yield the result that I hoped - quickly seeing the reason for the problem and coming up with a fix. Unfortunately, I think the easiest way for me to understand the problem is to get an environment that can be used to reproduce the issue. That requires time, and while I might have a look at at some point, for now it's not planned, sorry.

Couldn't you just have the software check the current taskbar width and have it set it back automatically after any resolution or monitor switch?

Sure, a solution would be something along those lines, but there are several unknown variables, including when exactly to apply the new width, and how it's represented (e.g. in case of monitors with different scale settings). It was reported that restarting the tweaker doesn't make the taskbar narrow again, while I expected it to work as the last used width is stored in the settings. In short, it requires time and effort which I'm not able to invest currently.