text: function addWidgetsfrmImgMaintainAspectRatio() {
      var labelimg = new kony.ui.Label({
          "id": "labelimg",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Image aspect ratio is same as original image"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_TOP_LEFT,
          "hExpand": true,
          "margin": [12, 18, 12, 7],
          "marginInPixel": true,
          "padding": [6, 0, 6, 0],
          "paddingInPixel": true,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "textCopyable": false,
          "wrapping": constants.WIDGET_TEXT_WORD_WRAP
      });
      var labelori = new kony.ui.Label({
          "id": "labelori",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Original image aspect ratio = 5:4"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_TOP_LEFT,
          "hExpand": true,
          "margin": [12, 7, 12, 7],
          "marginInPixel": true,
          "padding": [6, 0, 6, 0],
          "paddingInPixel": true,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "textCopyable": false,
          "wrapping": constants.WIDGET_TEXT_WORD_WRAP
      });
      var labeloriasp = new kony.ui.Label({
          "id": "labeloriasp",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Aspect ratio of referenceWidth and referenceHeight = 2:1"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_TOP_LEFT,
          "hExpand": true,
          "margin": [12, 7, 12, 7],
          "marginInPixel": true,
          "padding": [6, 0, 6, 0],
          "paddingInPixel": true,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "textCopyable": false,
          "wrapping": constants.WIDGET_TEXT_WORD_WRAP
      });
      var line1 = new kony.ui.Line({
          "id": "line1",
          "isVisible": true,
          "skin": "lineNormal"
      }, {
          "marginInPixel": false,
          "thickness": 1
      }, {});
      var hbox19338245768 = new kony.ui.Box({
          "id": "hbox19338245768",
          "isVisible": true,
          "orientation": constants.BOX_LAYOUT_HORIZONTAL,
          "position": constants.BOX_POSITION_AS_NORMAL
      }, {
          "containerWeight": 100,
          "layoutAlignment": constants.BOX_LAYOUT_ALIGN_FROM_LEFT,
          "layoutType": constants.CONTAINER_LAYOUT_BOX,
          "margin": [12, 7, 12, 7],
          "marginInPixel": true,
          "padding": [0, 0, 0, 0],
          "paddingInPixel": true,
          "percent": true,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_TOP_LEFT
      }, {});
      var imgOriginal2 = new kony.ui.Image2({
          "id": "imgOriginal2",
          "isVisible": true,
          "src": "koala_250x200.png"
      }, {
          "containerWeight": 45,
          "imageScaleMode": constants.IMAGE_SCALE_MODE_MAINTAIN_ASPECT_RATIO,
          "margin": [0, 0, 0, 0],
          "marginInPixel": false,
          "padding": [0, 0, 0, 0],
          "paddingInPixel": false,
          "referenceHeight": 100,
          "referenceWidth": 200,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "glossyEffect": constants.IMAGE_GLOSSY_EFFECT_DEFAULT
      });
      var labelno = new kony.ui.Label({
          "id": "labelno",
          "isVisible": true,
          "skin": "lblNormal"
      }, {
          "containerWeight": 53,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [1, 1, 1, 1],
          "marginInPixel": true,
          "padding": [6, 10, 6, 10],
          "paddingInPixel": true,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "textCopyable": false,
          "wrapping": constants.WIDGET_TEXT_WORD_WRAP
      });
      hbox19338245768.add(imgOriginal2, labelno);
      var line2 = new kony.ui.Line({
          "id": "line2",
          "isVisible": true,
          "skin": "lineNormal"
      }, {
          "marginInPixel": false,
          "thickness": 1
      }, {});
      var labelimgrefwdht = new kony.ui.Label({
          "id": "labelimgrefwdht",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "The below image is of size 600x600 without referenceWidth and referenceHeight"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [12, 7, 12, 7],
          "marginInPixel": true,
          "padding": [6, 10, 6, 10],
          "paddingInPixel": true,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "textCopyable": false,
          "wrapping": constants.WIDGET_TEXT_WORD_WRAP
      });
      var line3 = new kony.ui.Line({
          "id": "line3",
          "isVisible": true,
          "skin": "lineNormal"
      }, {
          "marginInPixel": false,
          "thickness": 1
      }, {});
      var imgRefWdHt = new kony.ui.Image2({
          "id": "imgRefWdHt",
          "isVisible": true,
          "src": "kolalala.png"
      }, {
          "containerWeight": 100,
          "imageScaleMode": constants.IMAGE_SCALE_MODE_MAINTAIN_ASPECT_RATIO,
          "margin": [12, 7, 12, 7],
          "marginInPixel": true,
          "padding": [0, 0, 0, 0],
          "paddingInPixel": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "glossyEffect": constants.IMAGE_GLOSSY_EFFECT_DEFAULT
      });
      var line4 = new kony.ui.Line({
          "id": "line4",
          "isVisible": true,
          "skin": "lineNormal"
      }, {
          "marginInPixel": false,
          "thickness": 1
      }, {});
      frmImgMaintainAspectRatio.add(labelimg, labelori, labeloriasp, line1, hbox19338245768, line2, labelimgrefwdht, line3, imgRefWdHt, line4);
  };
  
  function frmImgMaintainAspectRatioGlobals() {
      frmImgMaintainAspectRatio = new kony.ui.Form2({
          "addWidgets": addWidgetsfrmImgMaintainAspectRatio,
          "bounces": true,
          "enabledForIdleTimeout": false,
          "id": "frmImgMaintainAspectRatio",
          "needAppMenu": true,
          "title": "Maintain aspect ratio"
      }, {
          "displayOrientation": constants.FORM_DISPLAY_ORIENTATION_PORTRAIT,
          "layoutType": constants.CONTAINER_LAYOUT_BOX,
          "paddingInPixel": false
      }, {
          "bounces": true,
          "configureExtendBottom": false,
          "configureExtendTop": false,
          "configureStatusBarStyle": false,
          "extendBottom": false,
          "extendTop": false,
          "footerOverlap": false,
          "formTransparencyDuringPostShow": 100,
          "headerOverlap": false,
          "inputAccessoryViewType": constants.FORM_INPUTACCESSORYVIEW_DEFAULT,
          "inTransitionConfig": {
              "transitionDirection": "none",
              "transitionEffect": "none"
          },
          "needsIndicatorDuringPostShow": true,
          "outTransitionConfig": {
              "transitionDirection": "none",
              "transitionEffect": "none"
          },
          "retainScrollPosition": false,
          "statusBarStyle": constants.STATUS_BAR_STYLE_DEFAULT,
          "titleBar": true,
          "titleBarConfig": {
              "renderTitleText": true,
              "prevFormTitle": false,
              "titleBarLeftSideView": "title",
              "labelLeftSideView": "Back",
              "titleBarRightSideView": "none"
          },
          "titleBarSkin": "sknTitleBarSampleApp"
      });
      frmImgMaintainAspectRatio.info = {
          "kuid": "p2kwiet12889314951440"
      };
  };