docs: @UiHandler("m_okButton")
      protected void onOk(ClickEvent event) {
  
          if (!((m_croppingParam.getTargetWidth() > 0) && (m_croppingParam.getTargetHeight() > 0))) {
              if (m_croppingParam.getTargetWidth() > 0) {
                  m_croppingParam.setTargetHeight(
                      (int)Math.floor(
                          (1.00 * m_croppingParam.getTargetWidth() * m_croppingParam.getCropHeight())
                              / m_croppingParam.getCropWidth()));
              } else if (m_croppingParam.getTargetHeight() > 0) {
                  m_croppingParam.setTargetWidth(
                      (int)Math.floor(
                          (1.00 * m_croppingParam.getTargetHeight() * m_croppingParam.getCropWidth())
                              / m_croppingParam.getCropHeight()));
              } else {
                  m_croppingParam.setTargetHeight(m_croppingParam.getCropHeight());
                  m_croppingParam.setTargetWidth(m_croppingParam.getCropWidth());
              }
          }
          ValueChangeEvent.fire(this, m_croppingParam);
          hide();
      }