Skip to content

SMenu、SHeader在界面最大化的时候,高、宽没有跟随界面变化 #21

Answered by syf20020816
grzeng-go asked this question in Q&A
Discussion options

You must be logged in to vote

请注意,这并不是issue
请仔细阅读Slint对原生Window内置组件的描述:
The Window geometry will be restricted by its layout constraints: Setting the width will result in a fixed width, and the window manager will respect the min-width and max-width so the window can’t be resized bigger or smaller. The initial width can be controlled with the preferred-width property. The same applies to the Windows height.
意思是Window受到布局约束,它的宽度由min-width和max-width进行限定,因此它无法被重置大小,它的初始化由preferred-width控制,它的高也一样

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by syf20020816
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #20 on January 03, 2024 15:39.