Skip to content

Commit

Permalink
release-1.1.0 fix: 장부 온보딩 Popup 특정 기기에서 발생하는 screen 상단 여백 하단으로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
jhg3410 committed Jul 1, 2024
1 parent 4e29f54 commit 206b587
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.IntRect
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.LayoutDirection
import androidx.compose.ui.window.Popup
import androidx.compose.ui.window.PopupPositionProvider
import com.google.accompanist.systemuicontroller.rememberSystemUiController
import com.moneymong.moneymong.design_system.theme.Gray10
import com.moneymong.moneymong.design_system.theme.White
Expand Down Expand Up @@ -64,7 +68,9 @@ internal fun LedgerOnboarding(
}
}

Popup {
Popup(
popupPositionProvider = LedgerPopupPositionProvider()
) {
when (currentPage) {
LedgerOnboardingPage.DATE -> {
LedgerOnboardingDatePage(
Expand Down Expand Up @@ -95,4 +101,20 @@ internal fun LedgerOnboarding(
}
}
}
}


private class LedgerPopupPositionProvider : PopupPositionProvider {
override fun calculatePosition(
anchorBounds: IntRect,
windowSize: IntSize,
layoutDirection: LayoutDirection,
popupContentSize: IntSize
): IntOffset {

return IntOffset(
x = 0,
y = 0
)
}
}

0 comments on commit 206b587

Please sign in to comment.