Hide CODEXCONTENT during layout and improvements to scaled layout