I'm not sure that I understand well what you say, But I subtract top and bottom to the height in the resolution calculation, ans in the centre calculation I subtract them together, by this way I tread them independently ..., In all the test I do with the example it's working well with symmetric paddings :-)