Fix padding calculation on stack.preferredSize