simple conceptual fix attached, implementation stolen from iconbox.c, works fine here. for the sake of consistency, the tasklist handle should have an opposite orientation to the panel's orientation, like iconbox & separator plugins do. it also takes less width on small panels.
Created attachment 2289 fix orientation
Committed in revision 29930