Skip to content

Conversation

@Gbr22
Copy link

@Gbr22 Gbr22 commented Nov 9, 2025

It is currently not possible to disable window resizing in gpui-component.

It would be nice if gpui-component inherited is_resizable from WindowOptions, but AFAIK, there is no way to access that value of the window after window creation, so I added the resizable option to Root (and WindowBorder) instead, with true as the default value to maintain the current behavior when unset.

If you are unhappy with the API in the PR, but agree that resizing should be something that can be disabled, then treat this as a feature request.

Copy link
Member

@huacnlee huacnlee left a comment

Choose a reason for hiding this comment

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

We shouldn't add this; it seems we can simply check whether the current window allows resizing within the WindowBorder.

@huacnlee
Copy link
Member

I checked the GPUI window, and it doesn't seem to have anything related to it.

However, your current modification still doesn't work; it only addresses the Linux limitation.

I think this requirement should be addressed by adding this parameter to the GPUI side.

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

Successfully merging this pull request may close these issues.

2 participants