code: public void onWidthChange(String width) {
  
          int value = CmsClientStringUtil.parseInt(width);
          if ((m_croppingParam.getTargetWidth() == value) || (value == 0)) {
              // the value has not changed, ignore'0'
              return;
          }
          m_croppingParam.setTargetWidth(value);
          if (m_ratioLocked) {
              m_croppingParam.setTargetHeight((value * m_originalHeight) / m_originalWidth);
              m_formatForm.setHeightInput(m_croppingParam.getTargetHeight());
          }
          // in case the width and height parameter don't match the current format any longer, switch to user defined format
          if ((!m_currentFormat.isWidthEditable() || (m_ratioLocked && !m_currentFormat.isHeightEditable()))
              && hasUserFormatRestriction()) {
              m_formatForm.setFormatSelectValue(m_userFormatKey);
          } else {
              fireValueChangedEvent();
          }
      }
docs: Execute on width change.<p>
  
  @param width the new width