Fixed sidebar padding calculation for hidden windows