Skip to content

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

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

Activity

  1. coderabbitai commented on Jun 11, 2026

    @coderabbitai
    ⚠️ Possible Duplicate Issue(s)

    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. rebeccaalpert commented on Jun 25, 2026

    @rebeccaalpert
    Member

    Hi @LukasStordeur - thank you for reporting! I'm going to close this as a duplicate of #12436. I'm taking a look at that one and you can follow our progress there.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions