@danielgindi/dgtable.js 2.0.3 → 2.0.5

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/lib.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/dgtable.js 2.0.3
2
+ * @danielgindi/dgtable.js 2.0.5
3
3
  * git://github.com/danielgindi/dgtable.js.git
4
4
  */
5
5
  (function (global, factory) {
@@ -4065,6 +4065,9 @@
4065
4065
  const elStyle = getComputedStyle(el);
4066
4066
  const elInnerStyle = getComputedStyle(elInner);
4067
4067
 
4068
+ let rtl = elStyle.float === 'right';
4069
+ let prop = rtl ? 'right' : 'left';
4070
+
4068
4071
  let paddingL = parseFloat(elStyle.paddingLeft) || 0,
4069
4072
  paddingR = parseFloat(elStyle.paddingRight) || 0,
4070
4073
  paddingT = parseFloat(elStyle.paddingTop) || 0,
@@ -4094,7 +4097,7 @@
4094
4097
  let css = {
4095
4098
  'box-sizing': borderBox ? 'border-box' : 'content-box',
4096
4099
  'width': requiredWidth,
4097
- 'min-height': Math.max(Css_js.getElementHeight(el), parseFloat(elStyle.minHeight) || 0) + 'px',
4100
+ 'min-height': Math.max(Css_js.getElementHeight(el), /%/.test(elStyle.minHeight) ? 0 : parseFloat(elStyle.minHeight) || 0) + 'px',
4098
4101
  'padding-left': paddingL,
4099
4102
  'padding-right': paddingR,
4100
4103
  'padding-top': paddingT,
@@ -4102,7 +4105,7 @@
4102
4105
  'overflow': 'hidden',
4103
4106
  'position': 'absolute',
4104
4107
  'z-index': '-1',
4105
- 'left': '0',
4108
+ [prop]: '0',
4106
4109
  'top': '0',
4107
4110
  'cursor': elStyle.cursor
4108
4111
  };
@@ -4176,8 +4179,6 @@
4176
4179
 
4177
4180
  let offset = Css_js.getElementOffset(el);
4178
4181
  let parentOffset = Css_js.getElementOffset(parent);
4179
- let rtl = elStyle.float === 'right';
4180
- let prop = rtl ? 'right' : 'left';
4181
4182
 
4182
4183
  // Handle RTL, go from the other side
4183
4184
  if (rtl) {