Modified demo to check hint alignment work when height is customized
Enhanced layer position logic