Skip to content

Commit

Permalink
修复了多次点击二级菜单后菜单位置异常 (zhiyiYo#792, zhiyiYo#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZhu2001 committed Apr 18, 2024
1 parent 84dfe8e commit 4d6cd11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qfluentwidgets/components/widgets/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def adjustSize(self, pos=None, aniType=MenuAnimationType.NONE):

# adjust the height of viewport
w, h = MenuAnimationManager.make(self, aniType).availableViewSize(pos)
self.viewport().adjustSize()
r = self.viewport().childrenRect()
self.viewport().resize(r.size())

# adjust the height of list widget
m = self.viewportMargins()
Expand Down

0 comments on commit 4d6cd11

Please sign in to comment.