mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-12 05:49:30 +02:00
Fix switching tabs when changing the pager height
This commit is contained in:
parent
49c93c11e6
commit
09f3a440d3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user