padding is a VariableListProperty so one can have padding[0] for the left be different from padding[2] for the right side. You need to account for that.