vh for margin/padding calculates incorrect value

Seems like using ‘vh’ as a value for margin/padding is calculated according to the height of the artboard, not the height of the ‘viewport’ :