Skip to content

Bug - [Code Editor] - Regression SizeToFit broken on 6.5.1 + Website Demo preview bugged #12446

@LukasStordeur

Description

@LukasStordeur

Describe the problem

The sizeToFit property on the code editor doesn't work anymore since 6.5.1

How do you reproduce the problem?

The sizeToFit example displays the same broken behavior I'm experiencing locally, where the property results in the editor being barely visible, and hiding all content.
Additionally, the page on the website https://www.patternfly.org/components/code-editor continuously glitch when trying to scroll to the top of the page.

Expected behavior

It should adjust the height based on its content, like it used to do.

Is this issue blocking you?
The workaround is to calculate the height manually based on amount of lines.

Screenshots

Image

What is your environment?

  • OS: Windows
  • Browser Chrome (also saw it on Firefox)
  • Version 149.0.7827.53 (Official Build)

Jira Issue: PF-4287

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status
    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions