4 Replies Latest reply on Nov 1, 2015 10:23 PM by BEGINNER_X

    UI text hidden in CC

    BEGINNER_X Level 3

      HI ALL,

      Problem: Text is hidden in the UI.

      Please loot at the first line of check box "slug information"

       

      I wrote the below coding,

      working fine in CS6 but not in CC.

       

      Code is below:

       

      var clickcancel = 0;
      var w = new Window ("dialog");
      w.alignChildren = "left";
      var myGroup1 = w.add('panel', undefined, 'XXXX Check List Points');
      myGroup1.alignChildren = "left";
      myGroup1.preferredSize = [600,150];    //Without this line also, not working fine
      var checkbox1 = myGroup1.add ("checkbox", undefined, "  01.  Check the ratio, artwork & live area sizes against job ticket and slug information");
      var checkbox2 = myGroup1.add ("checkbox", undefined, "  02.  Check images are linked");
      var checkbox3 = myGroup1.add ("checkbox", undefined, "  03.  Visually check the progression of KV/Model/CP images");
      var checkbox4 = myGroup1.add ("checkbox", undefined, "  04.  Visually check the progression of other elements like Logo and Bottle");
      var checkbox5 = myGroup1.add ("checkbox", undefined, "  05.  Check the placement of Language Tagging");
      
      
      var myButtons = w.add ("group");
      var EXPORT = myButtons.add("button", undefined, "Export PDF", {name: "ok"});
      var CAN = myButtons.add("button", undefined, "Cancel", {name: "exit"});
      
      EXPORT.onClick = function (){w.close();}
      
      CAN.onClick = function (){clickcancel = 1;w.close();}
      
      w.show();
      
      if(clickcancel == 1){exit();}      
      

       

      Output Screenshot:

       

      Screen Shot 2015-10-30 at 04.09.33.png

       

      Thanks in Advance

      Siraj

        • 1. Re: UI text hidden in CC
          Sajeev Sridharan Level 4

          Try this,

           

          var clickcancel = 0;  
          var w = new Window ("dialog");  
          w.alignChildren = "left";  
          var myGroup1 = w.add('panel', undefined, 'XXXX Check List Points');  
          myGroup1.alignChildren = "left";  
          //myGroup1.preferredSize = [600,150];    //Without this line also, not working fine  
          var checkbox1 = myGroup1.add ("checkbox", [10,0,500, 20], "  01.  Check the ratio, artwork & live area sizes against job ticket and slug information");  
          var checkbox2 = myGroup1.add ("checkbox", [10,0,500, 20], "  02.  Check images are linked");  
          var checkbox3 = myGroup1.add ("checkbox", [10,0,500, 20], "  03.  Visually check the progression of KV/Model/CP images");  
          var checkbox4 = myGroup1.add ("checkbox", [10,0,500, 20], "  04.  Visually check the progression of other elements like Logo and Bottle");  
          var checkbox5 = myGroup1.add ("checkbox", [10,0,500, 20], "  05.  Check the placement of Language Tagging");  
            
            
          var myButtons = w.add ("group");  
          var EXPORT = myButtons.add("button", undefined, "Export PDF", {name: "ok"});  
          var CAN = myButtons.add("button", undefined, "Cancel", {name: "exit"});  
            
          EXPORT.onClick = function (){w.close();}  
            
          CAN.onClick = function (){clickcancel = 1;w.close();}  
            
          w.show();  
            
          if(clickcancel == 1){exit();}     
          

           

           

          Vandy

          • 2. Re: UI text hidden in CC
            Harbs. Level 6

            Based on your screenshot, it looks like the leading space is not accounted for when the layout manager measures the text width. Interesting...

            • 3. Re: UI text hidden in CC
              Peter Kahrel Adobe Community Professional & MVP

              That's right. Before CC there wasn't enough space between checkboxes and their labels, which you could fix by adding one or more leading spaces. From CC there is enough space, and if you didn't remove those leading spaces you ge to see the problem in the screen shot.

               

              There's no need to set the size of the controls, by the way. Just remove the leading spaces.

               

              P.

              • 4. Re: UI text hidden in CC
                BEGINNER_X Level 3

                Hi Legends,

                 

                Sorry for the delayed response. Just back from my native village.

                 

                Warm thanks to Sajeev, Harbs and PKahrel.