@verdocs/web-sdk 2.2.22 → 2.2.23
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/cjs/verdocs-dropdown.cjs.entry.js +1 -0
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -0
- package/dist/components/verdocs-dropdown2.js +1 -0
- package/dist/custom-elements.json +2055 -0
- package/dist/docs.json +1 -1
- package/dist/esm/verdocs-dropdown.entry.js +1 -0
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-353c7ff6.system.entry.js → p-272933c6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c230e3d1.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-686bf682.entry.js +0 -1
@@ -47,6 +47,7 @@ const VerdocsDropdown = class {
|
|
47
47
|
const bodyWidth = document.body.scrollWidth;
|
48
48
|
const buttonRect = (_a = this.dropdownButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
49
49
|
const triggerHeight = ((_b = this.dropdownButton) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 28;
|
50
|
+
console.log('Repositioning dropdown', { bodyWidth, buttonRect, triggerHeight }, menu);
|
50
51
|
menu.style.top = `${((buttonRect === null || buttonRect === void 0 ? void 0 : buttonRect.top) || 0) + triggerHeight}px`;
|
51
52
|
menu.style.right = `${Math.max(0, bodyWidth - ((buttonRect === null || buttonRect === void 0 ? void 0 : buttonRect.right) || 0))}px`;
|
52
53
|
}
|
@@ -55,6 +55,7 @@ export class VerdocsDropdown {
|
|
55
55
|
const bodyWidth = document.body.scrollWidth;
|
56
56
|
const buttonRect = (_a = this.dropdownButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
57
57
|
const triggerHeight = ((_b = this.dropdownButton) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 28;
|
58
|
+
console.log('Repositioning dropdown', { bodyWidth, buttonRect, triggerHeight }, menu);
|
58
59
|
menu.style.top = `${((buttonRect === null || buttonRect === void 0 ? void 0 : buttonRect.top) || 0) + triggerHeight}px`;
|
59
60
|
menu.style.right = `${Math.max(0, bodyWidth - ((buttonRect === null || buttonRect === void 0 ? void 0 : buttonRect.right) || 0))}px`;
|
60
61
|
}
|
@@ -44,6 +44,7 @@ const VerdocsDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
44
44
|
const bodyWidth = document.body.scrollWidth;
|
45
45
|
const buttonRect = (_a = this.dropdownButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
46
46
|
const triggerHeight = ((_b = this.dropdownButton) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 28;
|
47
|
+
console.log('Repositioning dropdown', { bodyWidth, buttonRect, triggerHeight }, menu);
|
47
48
|
menu.style.top = `${((buttonRect === null || buttonRect === void 0 ? void 0 : buttonRect.top) || 0) + triggerHeight}px`;
|
48
49
|
menu.style.right = `${Math.max(0, bodyWidth - ((buttonRect === null || buttonRect === void 0 ? void 0 : buttonRect.right) || 0))}px`;
|
49
50
|
}
|