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

Improve placement of floating widgets #473

Merged
merged 22 commits into from
Apr 6, 2020

Conversation

aarranz
Copy link
Member

@aarranz aarranz commented Feb 21, 2020

This PR improves the FreeLayout class to add more options when placing widgets. Those additions consists on:

  • Supporting different placement origins. Currently floating widgets are placed using the top left square as reference. This PR allows to use other reference points: bottomleft, topright, bottomright, topcenter and bottomcenter. Once changed this option, widget coordinates (x, y) will be taken relative to the selected square.
  • Supporting selecting between proportional and absolute sizes and coordinates. Currently floating widgets are using proportional sizes and coordinates, meaning that when the dashboard changes of size, those parameters are adapted to the new size. This way you can select the desired behaviour.

@coveralls
Copy link

coveralls commented Feb 21, 2020

Coverage Status

Coverage increased (+0.7%) to 82.699% when pulling 6cc5a42 on aarranz:feature/rel-freelayout into 3ca4e4a on Wirecloud:develop.

@aarranz aarranz changed the title [WIP] Improve placement of floating widgets Improve placement of floating widgets Apr 6, 2020
@aarranz aarranz merged commit 66b14e3 into Wirecloud:develop Apr 6, 2020
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