diff --git a/packages/file-handling/src/clipboard.js b/packages/file-handling/src/clipboard.js index b7d6ef295cd8989fe9b85cf615dacce2cddc2b1c..7447d68545977681f8e73a88247ac76c45576439 100644 --- a/packages/file-handling/src/clipboard.js +++ b/packages/file-handling/src/clipboard.js @@ -104,7 +104,7 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { selectable: true, selectableRangeMode: "drag", responsiveLayout:"collapse", - /*responsiveLayoutCollapseStartOpen:false,*/ + responsiveLayoutCollapseStartOpen:false, resizableColumns: false, placeholder: i18n.t("clipboard.no-data"), columns: [ @@ -210,15 +210,14 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { that.generateClipboardTable(); }); - //Register only one beforeunload Event for the clipboard warning if (!window.clipboardWarning) { window.addEventListener('beforeunload', this._onReceiveBeforeUnload, false); window.clipboardWarning = true; } + } - } disconnectedCallback() { @@ -305,6 +304,8 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { this.tabulatorTable.clearData(); this.tabulatorTable.setData(data); } + + this.redrawTableWhenCollapsing(this.tabulatorTable); } } @@ -775,6 +776,10 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { font-size: 1.3em; margin-top: -8px; } + + .tabulator .tabulator-tableHolder { + height: unset !important; //TODO find a better way to do this + } @media only screen and (orientation: portrait)