Fix viewport size when we use border or padding on the target