zhaoyang 2 years ago
parent
commit
0b0c51c68c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

@@ -173,14 +173,14 @@ namespace GFGGame
                     _ui.m_compTxt.target.visible = !String.IsNullOrEmpty(txtContent);
 
 
-                    int padding = 200;
+                    int padding = 100;
                     if (logicScreenPos.y < GRoot.inst.height - 700)
                     {
-                        _ui.m_compTxt.target.y = logicScreenPos.y + padding;
+                        _ui.m_compTxt.target.y = logicScreenPos.y + _ui.m_comHolder.target.height + padding;
                     }
                     else
                     {
-                        _ui.m_compTxt.target.y = logicScreenPos.y - padding - _ui.m_compTxt.target.height;
+                        _ui.m_compTxt.target.y = logicScreenPos.y - _ui.m_compTxt.target.height - padding;
                     }
                     if (compTxtY > 0)
                     {