6 Replies Latest reply on Apr 5, 2017 12:04 PM by Peter Kahrel

    While loop is always true

    jakec88782761 Level 1

      Hi guys,

       

      I'm trying to get a text frame to expand while the text is overset.

      I've tried the following but nothing works:

       

       

      while ( watermark.overflows === true ) {
          watermark.geometricBounds[3] = watermark.geometricBounds[3] + 10;
      
          }
      
      
      }               
      
      
      // also tried
      
      watermark.fit(FitOptions.TEXT_TO_FRAME);