fix pad left/right calc