perf:优化layoutSync逻辑
This commit is contained in:
1 parent
67361e44f3
commit
6b583b966b
1 file changed
+2
@@ -473,6 +473,8 @@ class PageView(
|
||||
}
|
||||
|
||||
fun layoutSync() {
|
||||
if (width <= 0 || height <= 0) return
|
||||
if (!isLayoutRequested) return
|
||||
measure(
|
||||
MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
|
||||
MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)
|
||||
|
||||
Reference in new issue
Block a user