VE-1478: Change the order of setting CSS propeties

Logic for calculating "left" in case of template being left aligned needs to access outerWidth() which wasn't available, because it was set too late.