feat: code auto calulating layout