Fix switching tabs when changing the pager height

pull/84/head
Oleg Koretsky 2023-02-06 14:46:54 +02:00
rodzic 49c93c11e6
commit 09f3a440d3
1 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -177,12 +177,9 @@ fun ProfileScreen(userId: String?, accountViewModel: AccountViewModel, navContro
HorizontalPager(
count = 4,
state = pagerState,
modifier = Modifier.then(with(LocalDensity.current) {
Modifier.size(
width = columnSize.width.toDp(),
height = (columnSize.height - tabsSize.height).toDp(),
)
})
modifier = with(LocalDensity.current) {
Modifier.height((columnSize.height - tabsSize.height).toDp())
}
) {
when (pagerState.currentPage) {
0 -> TabNotes(baseUser, accountViewModel, navController)