No I was suggesting simply starting by modifying that function. We will look into this in a future version - its a lot easier now that we have layouts and layout containers - we now know how big each "element" is and where to snap to, rather than having hardcoded numbers in there,.