Skip to content

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

@zhouxl6

Description

@zhouxl6

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions