fix incorrect scroll behavior in case of indent layout