Backward compatibility - setMargin