fix: ReadStyleContent切换Tab时高度跳变问题 (#1322)
* fix: ReadStyleContent切换Tab时高度跳变问题 * chore:移除调试代码
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package io.legado.app.ui.book.read.sheet
|
||||
|
||||
import androidx.compose.animation.animateContentSize
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
@@ -108,7 +109,9 @@ fun ReadStyleContent(
|
||||
) {
|
||||
HorizontalPager(
|
||||
state = pagerState,
|
||||
modifier = Modifier.weight(1f, fill = false),
|
||||
modifier = Modifier
|
||||
.weight(1f, fill = false)
|
||||
.animateContentSize(),
|
||||
) { page ->
|
||||
when (page) {
|
||||
0 -> GlobalThemePage(
|
||||
|
||||
Reference in New Issue
Block a user