Annoying space below hype when scaled 100%

regarding your test #1 it seems your condition is to do a proportional scale regarding a layoutdimension.
so for that usecase just paste the code here to your documents head (meaning the wrapper-document, not the hypedocument) ...