4 Replies Latest reply: May 9, 2014 6:28 AM by GaborM RSS

    ScriptUI edittext scrollbar problem with Bridge CC Mac

    gabork Community Member

      Hello,

       

      With Bridge CC for Mac, in the UI, the scrollbar which come with edittext and multiline option, is not active.

       

      The scrollbar on the right appears by typing text or ENTER, but not by scripting.

       

      Any idea? Thanks

       

       

      #target bridge

       

      var textgen = new Array();

       

      for (var r = 0; r < 15; r++) {

          textgen[r] = ("line "+r);

          }

      var generatedtext = (textgen.join('\n')); 

       

      var win2 = new Window("dialog", undefined, [0,0,200,200], ); // UI

      with(win2){    

          win2.eText = add( "edittext", [5,45,140,175], generatedtext, {multiline: true, scrolling: true} ); // problem here with Bridge CC Mac

          win2.retour = add( "button", [150,5,195,32], "Close" );

          }

       

      win2.retour.onClick = function() {win2.close();};

       

      win2.center();

      win2.show();