Stack is measured from the BB to the top of the head tube vertically. If the head tube is placed lower relative to the BB, it can be long and still not stack up high.
BTW, be careful. Integrated head tubes make up shorter than conventional head tubes do. It is very complex. Fortunately spacers and stem length and angle make up for small differences.