One day I found out that if you call 'Increase & Decrease selected track heights a little bit', and then show bottom docker the tracks don't resize, so made a script to toggle the bottom docker (and preserve track heights).
Code:
function RunCustomAction(id)
reaper.Main_OnCommand(reaper.NamedCommandLookup(id), 0)
end
if reaper.GetToggleCommandState(40279) == 1 then -- bottom docker open
reaper.Main_OnCommand(40279, 0) -- View: Show docker / (close it)
else
reaper.PreventUIRefresh(1)
RunCustomAction('_SWS_SAVESEL') ----------- SWS: Save current track selection
reaper.Main_OnCommand(40296, 0) -- Track: Select all tracks
reaper.Main_OnCommand(41327, 0) -- View: Increase selected track heights a little bit
reaper.Main_OnCommand(41328, 0) -- View: Decrease selected track heights a little bit
-- reaper.Main_OnCommand(40297, 0) -- Track: Unselect all tracks -- (Not Needed ?)
RunCustomAction('_SWS_RESTORESEL') -------- SWS: Restore saved track selection
reaper.Main_OnCommand(40279, 0) -- View: Show docker
reaper.PreventUIRefresh(-1)
end
reaper.defer(function () end)