zhuzichu520 / FluentUI

FluentUI for QML
MIT License
3.16k stars 422 forks source link

FluExpander在结合ScrollView和TextArea使用时,TextArea第一次展开时无文本 #408

Closed weypro closed 5 months ago

weypro commented 5 months ago

测试代码如下(可直接替换example内示例):

FluExpander {
                Layout.topMargin: 20
                headerText: "打开一个滑动文本框"
                Item {
                    anchors.fill: parent
                    ScrollView {
                        anchors.fill: parent
                        TextArea {
                            id: text_info
                            width: parent.width
                            wrapMode: Text.WrapAnywhere
                            padding: 14
                            text: "先帝..."
                        }
                    }
                }
            }

预期效果:给TextArea加上滚动条,并且能够在展开后就能直接看到文本 实际效果:FluExpander展开后出现TextArea,但里面没有显示文本。在选中TextArea后出现文本。 以下是选中前后截图: 屏幕截图 2024-01-22 132622 屏幕截图 2024-01-22 132629

zhuzichu520 commented 5 months ago

已修改再试试 https://github.com/zhuzichu520/FluentUI/commit/d6325b4f5baeafddcf5c570ccd772ff8faf1d1fa

weypro commented 5 months ago

好了