Skip to content

Commit

Permalink
[FIX/#262] 성향 검사 완료시 흰색 여백 생기는 현상 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
chattymin committed Mar 21, 2024
1 parent a369d32 commit 3ae7ad0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class ParticipantProfileActivity :
}
}

setFragmentHeight(profile.result == -1)

tvProfileName.text = profile.name
tvProfileOneLine.text = profile.intro

Expand Down Expand Up @@ -149,15 +151,15 @@ class ParticipantProfileActivity :
setFragmentHeight()
}

private fun setFragmentHeight(temp: Boolean = true) {
private fun setFragmentHeight(isEmpty: Boolean = true) {
val displayHeight = getWindowHeight()
val toolbarHeight = binding.tbTripProfile.height
val appBarHeight = binding.appbarTripProfile.totalScrollRange
val tabHeight = binding.tabTripProfile.height

binding.vpTripProfile.layoutParams = binding.vpTripProfile.layoutParams.also {
it.height =
if (temp) displayHeight - toolbarHeight - appBarHeight - tabHeight else displayHeight - toolbarHeight - tabHeight
if (isEmpty) displayHeight - toolbarHeight - appBarHeight - tabHeight else displayHeight - toolbarHeight - tabHeight
}
}

Expand Down

0 comments on commit 3ae7ad0

Please sign in to comment.