fit-ui 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Fit.UI.js CHANGED
@@ -648,7 +648,7 @@ Fit._internal =
648
648
  {
649
649
  Core:
650
650
  {
651
- VersionInfo: { Major: 2, Minor: 7, Patch: 0 } // Do NOT modify format - version numbers are programmatically changed when releasing new versions - MUST be on a separate line!
651
+ VersionInfo: { Major: 2, Minor: 7, Patch: 1 } // Do NOT modify format - version numbers are programmatically changed when releasing new versions - MUST be on a separate line!
652
652
  }
653
653
  };
654
654
 
@@ -23056,21 +23056,22 @@ Fit.Controls.Input = function(ctlId)
23056
23056
 
23057
23057
  var enableAutoGrow = me.Height().Value === -1 || (designEditorConfig !== null && designEditorConfig.AutoGrow && designEditorConfig.AutoGrow.Enabled === true);
23058
23058
 
23059
- if (enableAutoGrow === true && me.Height().Value !== -1)
23059
+ if (enableAutoGrow === true && me.Maximizable() === true)
23060
23060
  {
23061
- me.Height(-1);
23061
+ // Maximize button is disabled when auto grow is enabled, but we make sure to "minimize" control
23062
+ // so maximize button returns to its initial state, in case control was maximized prior to enabling
23063
+ // DesignMode with auto grow. Otherwise the button indicates that the control is maximized, and so
23064
+ // does calls to Maximized() which will incorrectly return True.
23065
+ me.Maximized(false);
23062
23066
  }
23063
23067
 
23064
- if (enableAutoGrow === true && me.Maximizable() === true)
23068
+ if (enableAutoGrow === true && me.Height().Value !== -1)
23065
23069
  {
23066
- // Maximize button is disabled (using CSS) when auto grow is enabled, but we make sure to "minimize"
23067
- // control so maximize button returns to its initial state, in case control was maximized prior to
23068
- // enabling DesignMode with auto grow. Otherwise the button indicates that the control is maximized,
23069
- // and so does calls to Maximized() which will incorrectly return True.
23070
- me.Maximized(false);
23070
+ me.Height(-1); // Enables auto grow
23071
23071
  }
23072
23072
 
23073
23073
  me._internal.Data("designmode", "true");
23074
+ me._internal.Data("autogrow", enableAutoGrow === true ? "true" : "false"); // Ensure proper value in case Height(..), which is responsible for updating data-autogrow, is never called
23074
23075
  repaint();
23075
23076
  }
23076
23077
  else if (val === false && designMode === true)