-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V3.8.2 enable resize inspector preview area height #16219
V3.8.2 enable resize inspector preview area height #16219
Conversation
Interface Check ReportThis pull request does not change any public interfaces ! |
setTimeout(() => { | ||
Editor.Message.broadcast('fbx-inspector:change-tab', panel.activeTab); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why using setTimeout
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为 fbx 的头部区域也在初始化监听此广播事件,此为发送位置,需要等下监听位置初始化完成
:host > .container > .content > section > inspector-resize-preview { | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
z-index: 10; | ||
} | ||
|
||
:host > .container > .content > section > inspector-resize-preview[area="header"] { | ||
bottom: 0; | ||
} | ||
|
||
:host > .container > .content > section > inspector-resize-preview[area="footer"] { | ||
top: 0; | ||
} | ||
|
||
:host > .container > .content > .content-header, | ||
:host > .container > .content > .content-footer { | ||
max-height: 80vh; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid using unnecessary nested selector and it's better not to reply on specific DOM structure. make it clear, make it simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specific structure selector can reduce false matches.
Re: #https://github.com/cocos/3d-tasks/issues/17386
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: