@sdata/web-vue 4.7.0 → 4.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.
@@ -117,7 +117,8 @@ var ellipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
117
117
  const nextPadding = `${computedStyle.paddingTop} ${computedStyle.paddingRight} ${computedStyle.paddingBottom} ${computedStyle.paddingLeft}`;
118
118
  if (nextHtml !== measurementHtml.value) measurementHtml.value = nextHtml;
119
119
  if (nextText !== text.value) text.value = nextText;
120
- if (triggerElement.clientWidth !== measurementWidth.value) measurementWidth.value = triggerElement.clientWidth;
120
+ const paddingBoxWidth = triggerElement.getBoundingClientRect().width - (parseFloat(computedStyle.borderLeftWidth) || 0) - (parseFloat(computedStyle.borderRightWidth) || 0);
121
+ if (paddingBoxWidth !== measurementWidth.value) measurementWidth.value = paddingBoxWidth;
121
122
  if (nextPadding !== measurementPadding.value) measurementPadding.value = nextPadding;
122
123
  }
123
124
  let measurementSettled = false;
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@sdata/web-vue",
5
- "version": "4.6.0",
5
+ "version": "4.7.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdata/web-vue",
3
- "version": "4.7.0",
3
+ "version": "4.7.1",
4
4
  "description": "SD Design Vue: A Vue.js 3 UI Library",
5
5
  "keywords": [
6
6
  "sd",