Fix end EdgeEffect being offset by padding  

Fix the end EdgeEffect being offset by the sum of both paddings (left+right in horizontal mode, top+bottom in vertical).