|
|
|
|
@ -3513,7 +3513,7 @@ class WordStyleMainWindow(QMainWindow):
|
|
|
|
|
|
|
|
|
|
# 如果日历组件可见,调整其大小和位置以适应窗口底部
|
|
|
|
|
if hasattr(self, 'calendar_widget') and self.calendar_widget.isVisible():
|
|
|
|
|
calendar_height = 250 # 减小高度使比例更美观
|
|
|
|
|
calendar_height = 350 # 增加高度以确保所有日期都能完整显示
|
|
|
|
|
self.calendar_widget.setGeometry(0, self.height() - calendar_height,
|
|
|
|
|
self.width(), calendar_height)
|
|
|
|
|
|
|
|
|
|
@ -3524,7 +3524,7 @@ class WordStyleMainWindow(QMainWindow):
|
|
|
|
|
self.calendar_widget.hide()
|
|
|
|
|
else:
|
|
|
|
|
# 设置日历组件位置在窗口底部
|
|
|
|
|
calendar_height = 250 # 减小高度使比例更美观
|
|
|
|
|
calendar_height = 350 # 增加高度以确保所有日期都能完整显示
|
|
|
|
|
|
|
|
|
|
# 将日历组件放置在窗口底部,占据整个宽度
|
|
|
|
|
self.calendar_widget.setGeometry(0, self.height() - calendar_height,
|
|
|
|
|
|