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

UserWarning: The style method is deprecated #4874

Closed
Valdanitooooo opened this issue Jul 11, 2023 · 1 comment
Closed

UserWarning: The style method is deprecated #4874

Valdanitooooo opened this issue Jul 11, 2023 · 1 comment

Comments

@Valdanitooooo
Copy link

Valdanitooooo commented Jul 11, 2023

When I use gradio version 3.35.2, I get this warning:

UserWarning: The `style` method is deprecated. Please set these arguments in the constructor instead

Then how should I set the height style of my chatbot to be 100% ?

chatbot = gr.Chatbot(elem_id="chat_chatbot", label="Chat").style(height="100%")

I have seen #4374 , and the construction method of Chatbot, only see a height argument of type int.

@abidlabs
Copy link
Member

abidlabs commented Jul 12, 2023

Duplicate of #4001, we don't currently have a way to do full height elements in gradio, but please follow #4001 in case we implement something like this in the future

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

2 participants