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

菜单宽度异常 #73

Open
verygoodlee opened this issue Aug 2, 2024 · 0 comments
Open

菜单宽度异常 #73

verygoodlee opened this issue Aug 2, 2024 · 0 comments

Comments

@verygoodlee
Copy link
Contributor

插件实现和内置实现的表现一致,测试脚本以内置实现为例

mp.add_forced_key_binding('a', function()
    mp.set_property_native('menu-data', {
        {
            title = '短标题',
            cmd = 'show-text a',
        }
    })
    mp.commandv('context-menu')
end)
mp.add_forced_key_binding('b', function()
    mp.set_property_native('menu-data', {
        {
            title = '长标题长标题长标题长标题长标题长标题',
            cmd = 'show-text b',
        }
    })
    mp.commandv('context-menu')
end)
  • 先打开短标题菜单 正常
    image
  • 再打开长标题菜单 正常
    image
  • 再打开短标题菜单 异常
    image

长标题占用宽度后,就永远缩不回去了,呈现只增不减的趋势

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

1 participant