Browse Source

【综合】购买相关细节调整

niehaoyu 11 months ago
parent
commit
8d443b23d3

+ 2 - 0
PDF Office/PDF Master/Class/Purchase/Appstore/KMPurchaseCompareWindowController.m

@@ -418,6 +418,8 @@ static NSString *const KMPurchaseCompareCellIdentifier       = @"KMPurchaseCompa
             }
         }
     };
+    self.value1PurchaseBtnLblBtn.layer.cornerRadius = CGRectGetHeight(self.value1PurchaseBtnLblBtn.frame)/2.;
+    self.value1PurchaseBtnLblBtn.layer.masksToBounds = YES;
     
     self.value2PurchaseButton.wantsLayer = YES;
     self.value2PurchaseButton.layer.cornerRadius = CGRectGetHeight(self.value2PurchaseButton.frame) / 2.;

+ 5 - 1
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -347,7 +347,11 @@ NSPopoverDelegate>
     if (self.view.superview) {
         self.view.frame = CGRectMake(MAX(0, CGRectGetWidth(self.view.superview.frame)-totalWidth - 8), (CGRectGetHeight(self.view.superview.frame)-CGRectGetHeight(self.view.frame))/2., totalWidth, self.view.frame.size.height);
     } else {
-        self.view.frame = CGRectMake(0,0, CGRectGetMaxX(self.button.frame) ,self.view.frame.size.height);
+        if (self.button.hidden) {
+            self.view.frame = CGRectMake(0,0, CGRectGetMaxX(self.aiLabel.frame) + 20 ,self.view.frame.size.height);
+        } else {
+            self.view.frame = CGRectMake(0,0, CGRectGetMaxX(self.button.frame) ,self.view.frame.size.height);
+        }
     }
     
     if (self.frameUpdateHandle) {