@banta/sdk 4.0.13 → 4.0.14
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/bundles/banta-sdk.umd.js +8 -1
- package/bundles/banta-sdk.umd.js.map +1 -1
- package/bundles/banta-sdk.umd.min.js +1 -1
- package/bundles/banta-sdk.umd.min.js.map +1 -1
- package/esm2015/lib/emoji/emoji-selector-button.component.js +9 -2
- package/fesm2015/banta-sdk.js +8 -1
- package/fesm2015/banta-sdk.js.map +1 -1
- package/lib/emoji/emoji-selector-button.component.d.ts +1 -0
- package/package.json +1 -1
package/bundles/banta-sdk.umd.js
CHANGED
|
@@ -7124,7 +7124,13 @@
|
|
|
7124
7124
|
this.panelElement.nativeElement.remove();
|
|
7125
7125
|
};
|
|
7126
7126
|
EmojiSelectorButtonComponent.prototype.ngAfterViewInit = function () {
|
|
7127
|
-
|
|
7127
|
+
this.putPanelAtRoot();
|
|
7128
|
+
};
|
|
7129
|
+
EmojiSelectorButtonComponent.prototype.putPanelAtRoot = function () {
|
|
7130
|
+
// If we are in full-screen, placing the panel outside of the full-screen element will result in it
|
|
7131
|
+
// always being behind said full-screen element, so we need to ensure we never place it further up the
|
|
7132
|
+
// stack.
|
|
7133
|
+
var root = document.fullscreenElement || document.body.querySelector('[ng-version]') || document.body;
|
|
7128
7134
|
root.appendChild(this.panelElement.nativeElement);
|
|
7129
7135
|
};
|
|
7130
7136
|
EmojiSelectorButtonComponent.prototype.removeListener = function () {
|
|
@@ -7132,6 +7138,7 @@
|
|
|
7132
7138
|
window.removeEventListener('resize', this.resizeListener);
|
|
7133
7139
|
};
|
|
7134
7140
|
EmojiSelectorButtonComponent.prototype.place = function () {
|
|
7141
|
+
this.putPanelAtRoot();
|
|
7135
7142
|
var pos = this.buttonElement.nativeElement.getBoundingClientRect();
|
|
7136
7143
|
var size = this.panelElement.nativeElement.getBoundingClientRect();
|
|
7137
7144
|
var left = window.scrollX + pos.left + pos.width - size.width;
|