Skip to content
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

header-bar 最大化过程中显示异常 #667

Open
zhouxl6 opened this issue Sep 8, 2021 · 2 comments
Open

header-bar 最大化过程中显示异常 #667

zhouxl6 opened this issue Sep 8, 2021 · 2 comments

Comments

@zhouxl6
Copy link

zhouxl6 commented Sep 8, 2021

header-bar 最大化过程中会出现卡顿,而且窗口右上角部分会显示异常(出现有多行横线)的现象

排查发现可能是 菜单分隔符使用有误,体现在 peony/src/control/header-bar.cpp 代码中的 多次调用 addSpacing 函数,单纯从函数名上看是想添加空格符,但是 addSpacing 函数中是 for 循环多次添加菜单分隔符,具体代码如下:

void HeaderBar::addSpacing(int pixel)
{
for (int i = 0; i < pixel; i++) {
addSeparator();
}
}

@zhouxl6
Copy link
Author

zhouxl6 commented Sep 8, 2021

image

@Yue-Lan
Copy link
Member

Yue-Lan commented Sep 26, 2021

header-bar 最大化过程中会出现卡顿,而且窗口右上角部分会显示异常(出现有多行横线)的现象

排查发现可能是 菜单分隔符使用有误,体现在 peony/src/control/header-bar.cpp 代码中的 多次调用 addSpacing 函数,单纯从函数名上看是想添加空格符,但是 addSpacing 函数中是 for 循环多次添加菜单分隔符,具体代码如下:

void HeaderBar::addSpacing(int pixel)
{
for (int i = 0; i < pixel; i++) {
addSeparator();
}
}

感谢反馈!最大化显示异常这个问题我们确认过确实存在,目前还在分析中,上面的addSpacing看起来确实有可疑之处,而且比较隐蔽,我们会好好确认这个问题是否是像您所分析的一样,然后尝试修复此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants