Skip to content

Commit f4f25ca

Browse files
committed
修复关于界面的按钮横屏布局错误
1 parent 85e5a01 commit f4f25ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qmuidemo/Modules/Demos/About/QDAboutViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ - (void)viewDidLayoutSubviews {
136136

137137
CGFloat contentWidthInRight = rightWidth - UIEdgeInsetsGetHorizontalValue(padding);
138138
self.websiteButton.frame = CGRectMake(leftWidth + padding.left, CGRectGetMinY(self.logoImageView.frame) + 10, contentWidthInRight, buttonHeight);
139-
self.documentButton.frame = CGRectSetY(self.documentButton.frame, CGRectGetMaxY(self.websiteButton.frame));
140-
self.gitHubButton.frame = CGRectSetY(self.documentButton.frame, CGRectGetMaxY(self.documentButton.frame));
139+
self.documentButton.frame = CGRectSetY(self.websiteButton.frame, CGRectGetMaxY(self.websiteButton.frame));
140+
self.gitHubButton.frame = CGRectSetY(self.websiteButton.frame, CGRectGetMaxY(self.documentButton.frame));
141141

142142
CGFloat copyrightLabelHeight = [self.copyrightLabel sizeThatFits:CGSizeMake(contentWidthInRight, CGFLOAT_MAX)].height;
143143
self.copyrightLabel.frame = CGRectFlatMake(leftWidth + padding.left, CGRectGetHeight(self.scrollView.bounds) - CGRectGetMaxY(self.navigationController.navigationBar.frame) - padding.bottom - copyrightLabelHeight, contentWidthInRight, copyrightLabelHeight);

0 commit comments

Comments
 (0)