Change padding to VariableListProperty

Calculate horizontal and vertical padding correctly