Skip to content

Conversation

@rebeccaalpert
Copy link
Member

Some example data was provided by OpenShift that had overlapping rows. This data had tabs in it. When tabs were removed, the issue went away, leading me to think that this one case is tied to character counts.

When we estimate the height in guessRowHeight, the data we are using has a \t character representing tabs. This leads to a misleading character count, which impacts the calculated number of rows displayed. (2, when we should expect 3, for example).

There may be other issues involved here, but this at least fixes this one provided example. We should talk to products that are continuing to experience this and gather sample outputs to see if we can recreate/adjust on an individual basis.

When we estimate the height in guessRowHeight, the data we are using has a \t character rather than tabs. This leads to a misleading character count, which impacts the calculated number of rows displayed. Some example data was provided by OpenShift that had overlapping rows. This data had tabs in it. When tabs were removed or replaced with strings, the issue could not be recreated. There may be other issues involved here, but this at least fixes this one provided example. We should talk to products that are continuing to experience this and gather sample outputs to see if we can recreate/adjust on an individual basis.
@rebeccaalpert rebeccaalpert marked this pull request as ready for review July 8, 2025 17:48
initialIndexWidth,
useAnsiClasses,
fastRowHeightEstimationLimit = 5000,
numSpaces = 8,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this info can be fetched from the browser: https://www.w3schools.com/jsref/prop_style_tabsize.asp

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm checking with the Core team - I don't think we set this property in PatternFly, but products could definitely do something like this to set numSpaces if they had it set.

Copy link
Member Author

@rebeccaalpert rebeccaalpert Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core says we don't set it, but you should definitely be able to do something like that in OpenShift if you set it there!

@rebeccaalpert rebeccaalpert merged commit 0e51660 into main Jul 28, 2025
7 checks passed
@github-actions
Copy link

🎉 This PR is included in version 6.3.0-prerelease.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When line is too big, it surpass the next line and mixes both end of current line and begins of next line.

4 participants