Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: popover가 뷰포트 밖으로 나가면 반대 방향으로 이동한다 #823

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

frankdev101
Copy link
Contributor

2023-07-25.1.27.19.mov
2023-07-25.1.27.51.mov

@vercel
Copy link

vercel bot commented Jul 25, 2023

@Jongminfire is attempting to deploy a commit to the Class101 Team on Vercel.

To accomplish this, @Jongminfire needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

@frankdev101 frankdev101 marked this pull request as ready for review July 25, 2023 07:58
@frankdev101 frankdev101 requested a review from a team July 25, 2023 07:58
@frankdev101 frankdev101 requested a review from YimJiYoung July 31, 2023 08:14
if (
positionValue.includes('top') &&
popoverY < 0 &&
childY + childHeight + computedOffset + popoverHeight < windowHeight
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요런 식들 공통의 함수로 묶어서 사용하긴 좀 어려울라나요 .. 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

최대한 공통 함수로 묶는 것 도전해볼게요 ㅋㅋㅋ

popoverY < 0 &&
childY + childHeight + computedOffset + popoverHeight < windowHeight
) {
setPositionValue(positionValue.replace('top', 'bottom') as Position);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그런데 position 위치를 다시 셋팅하면 뚝딱거리지는 않나요??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Popover에 애니메이션을 걸어놔서 첨부한 영상처럼 되긴 합니다~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 근데 영상은 resize 이벤트 달아놨을 때 기준이긴 해요

@vercel
Copy link

vercel bot commented Sep 4, 2023

@neroli-101 is attempting to deploy a commit to the Class101 Team on Vercel.

To accomplish this, @neroli-101 needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants