Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating Editor dimensions #10735

Open
khattakdev opened this issue Feb 4, 2025 · 0 comments
Open

Floating Editor dimensions #10735

khattakdev opened this issue Feb 4, 2025 · 0 comments

Comments

@khattakdev
Copy link
Member

When an editor has floating : true - the height and width value doesn't work properly, unless the updateSize is set to an empty function.

{
            text  : 'Color',
            field : 'color',
            flex  : 1,
            cellEditor : { floating : true, align : 't40-t0', width: 500, height: 500, updateSize : () => {}},
            editor     : (ref) => <ColorEditor ref={ref} />,
            renderer({ cellElement, value }) {
                // set the color based on the value (e.g. "Red" should be red)
                cellElement.style.color = value;
                return value;
            }
        }

@jsakalos mentioned this is a hackish solution - we should have a proper fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant