Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Changed simplifyMatrix() #120

Conversation

jtMUMT
Copy link
Contributor

@jtMUMT jtMUMT commented Jan 26, 2020

Only empty edge-rows and edge-columns will be pruned by simplifyMatrix(). This is to make it easier to compose larger form layouts and give a bit more control to the user.

Context: I'm making a database for my small business and I was frustrated by the aggressive pruning of the form matrix columns/rows which was making it difficult to arrange the (many) widgets. Changing the pruning behaviour to only target the edges means that I can break up clusters of widgets with empty space, and I can make more working space while I experiment with the layout.

Love the software, and happy to contribute. If this change goes against your desired usage I understand completely, no bad feels.

Only empty edges and columns will be pruned by simplifyMatrix(). This is to make it easier to compose larger form layouts and give more control to the user.
@joshirio joshirio self-requested a review January 27, 2020 18:45
@joshirio joshirio added this to the 2.6 milestone Jan 27, 2020
@joshirio joshirio self-assigned this Jan 27, 2020
@joshirio joshirio removed their request for review January 27, 2020 18:46
@joshirio
Copy link
Collaborator

joshirio commented Jan 27, 2020

Nice addition, I'll do some tests and review the code and if everything works we can merge it for the 2.6 release. Thank you for the contribution!

@jtMUMT
Copy link
Contributor Author

jtMUMT commented Jan 27, 2020

My pleasure—I hope it doesn't break everything!

@joshirio joshirio self-requested a review January 27, 2020 21:06
@joshirio joshirio changed the base branch from master to formview-allow-empty-column-rows January 29, 2020 17:36
@joshirio joshirio removed their request for review January 29, 2020 17:37
@joshirio
Copy link
Collaborator

I'm merging your work as an additional feature but leaving the current behavior as default.
I'll add a new option in the settings to allow empty rows/columns in the form view for users wishing more layout freedom.

Thanks! And of course I'll add you to the contributors list.

@joshirio joshirio merged commit 067f9ee into giowck:formview-allow-empty-column-rows Jan 29, 2020
@jtMUMT jtMUMT deleted the jt_matrixLayoutChanges branch January 29, 2020 17:50
@jtMUMT
Copy link
Contributor Author

jtMUMT commented Jan 29, 2020

Happy to contribute :)

@joshirio
Copy link
Collaborator

Actually I think I'll make this the new default because removing free space is easy for the user, they just move a couple of widgets instead of hunting down unknown settings... Anyway an option will be provided in the settings.

joshirio added a commit that referenced this pull request Jan 29, 2020
by default in form view, with new setting to enable auto pruning of unused space, see #120
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants