Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/main/src/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,12 @@ class Table extends UI5Element {

_onResize() {
const { clientWidth, scrollWidth } = this._tableElement;
// Safari can report scrollWidth 1px greater than clientWidth during zoom transitions
// due to subpixel rounding, so a strict > check triggers spurious popin cycles.
const overflow = scrollWidth - clientWidth;

if (scrollWidth > clientWidth) {
if (overflow > 1) {
// Overflow Handling: Move columns into the popin until overflow is resolved
const overflow = scrollWidth - clientWidth;
const headers = this._getPopinOrderedColumns(false);
const poppedInWidth = headers.reduce((totalPoppedInWidth, headerCell) => {
if (totalPoppedInWidth < overflow && !headerCell._popin) {
Expand Down
Loading