Commit e9c3971
committed
fix: resolve tray submenu display position issue at screen top-left
1. Fix incorrect property usage in submenu geometry calculation - use
`requestedWidth`/`requestedHeight` instead of `width`/`height`
2. Ensure submenu dimensions are properly set from requested values
before geometry adjustment
3. Use `setWindowGeometry()` to properly position and size the submenu
window with calculated coordinates
Log: Fixed tray tray submenu appearing at screen top-left corner
Influence:
1. Test submenu display position with various application tray icons
2. Verify submenu positioning when screen resolution changes
3. Test submenu behavior with different popup sizes
4. Confirm submenu stays within visible screen boundaries
5. Verify multiple submenu cascade functionality
fix: 修复托盘子菜单显示在屏幕左上角的问题
1. 修复子菜单几何计算中使用错误的属性 - 改用`requestedWidth`/
`requestedHeight`替代`width`/`height`
2. 确保在几何调整前使用请求尺寸正确设置子菜单尺寸
3. 使用`setWindowGeometry()`通过计算坐标正确定位和设置子菜单窗口尺寸
Log: 修复托盘子菜单显示在屏幕左上角的问题
Influence:
1. 测试不同应用托盘图标点击后的子菜单位置
2. 验证屏幕分辨率变化时子菜单位置是否正确
3. 测试不同大小弹出菜单的显示行为
4. 确认子菜单始终显示在屏幕可视区域内
5. 验证多层子菜单的级联显示功能1 parent 79e063b commit e9c3971
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
0 commit comments