Skip to content

Commit

Permalink
修复错误
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Feb 13, 2023
1 parent e208c9b commit 8f5db28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/interface/ui_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def setupUi(self, Navigation):
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 253, 608))
self.scrollAreaWidgetContents.setGeometry(QRect(0, -433, 253, 608))
self.verticalLayout_3 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_3.setSpacing(6)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
Expand Down Expand Up @@ -318,6 +318,7 @@ def setupUi(self, Navigation):
self.verticalLayout_3.addWidget(self.downloadButton)

self.localReadButton = QToolButton(self.scrollAreaWidgetContents)
self.buttonGroup.addButton(self.localReadButton)
self.localReadButton.setObjectName(u"localReadButton")
sizePolicy1.setHeightForWidth(self.localReadButton.sizePolicy().hasHeightForWidth())
self.localReadButton.setSizePolicy(sizePolicy1)
Expand Down
2 changes: 1 addition & 1 deletion src/view/read/read_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def ScaleReset(self, oldScaleCnt):
self.frame.scrollArea.ResetLabelSize(self.qtTool.maxPic)

def ResetSize(self):
self.qtTool.ChangeReadMode2(self.readImg.stripModel)
self.qtTool.ChangeReadMode2(self.readImg.stripModel.value)

def ScaleResetVer(self):
if not ReadMode.isScroll(self.initReadMode) or self.initReadMode == ReadMode.UpDown:
Expand Down

0 comments on commit 8f5db28

Please sign in to comment.