Here are two workarounds which you might be looking for and these can be implemented without modifying the source code-
example 1
example 2
If you are looking for something else, could you please explain it a bit in detail. Also, please provide a pictorial representation so that it will help us to understand your requirement properly.