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

widget does not position in the default area #161

Closed
roxanadangerm opened this issue Oct 31, 2022 · 2 comments
Closed

widget does not position in the default area #161

roxanadangerm opened this issue Oct 31, 2022 · 2 comments

Comments

@roxanadangerm
Copy link

Hello,
I am testing the widget example and I am trying to customise a widget to set it up in the top area. I changed the value of the default location of the widget with:

defaultWidgetOptions: { area: 'top' },

in the file widget-contibution.ts.

But, I can not see a change of the widget position. It does not work for other values either.

What other changes I need to do for achieving this behaivour?

Many thanks!

@vince-fugnitto
Copy link
Member

@roxanadangerm I believe the top panel is pretty specific to what can be rendered there, currently it is the main menu, do you maybe mean the main area?

If you're modifying the layout of the application you may want to execute the reset workbench layout command which will clear any previous layout data stored in local-storage. This may explain why despite updating your area in the code you are still loading the older data which gets saved when a user exists the app.

@roxanadangerm
Copy link
Author

Great, the reset command did the trick!
Thank you very much @vince-fugnitto !

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