Browse Source

修正了位置

MoYuWang 9 tháng trước cách đây
mục cha
commit
9f3c6b936e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Classes/IAP/Shop/IAPCtlShopUI.cpp

+ 2 - 1
Classes/IAP/Shop/IAPCtlShopUI.cpp

@@ -116,9 +116,10 @@ void IAPCtlShopUI::displayFailureCardIn(cocos2d::Node *pNode){
     
     auto visibleSize = Director::getInstance()->getVisibleSize();
     float width = visibleSize.width;
-    cocos2d::Size sz = cocos2d::Size(width, h + 20);
+    cocos2d::Size sz = cocos2d::Size(width, h + 10);
     
     IAPCardView* cardView = IAPCardView::create(sz, cfg);
+    cardView->setPosition(Vec2(cardView->getPosition()) + Vec2(0, 20));
     
     IAPTestCardViewDelegate* cardViewDelegate = new IAPTestCardViewDelegate();
     cardView->setDelegate(cardViewDelegate);