GUI strange behavior for windows fits screen

I found a solution here: Get real size of GUI node