-
Notifications
You must be signed in to change notification settings - Fork 50
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
Double size of remaining components of logic editor #659
Double size of remaining components of logic editor #659
Conversation
Amadeus1791
commented
Jan 13, 2025
- Those changes would complete the double sizing of all components for better visibility.
- The other changes were done before in Double size of ground and output figures #658 and Double size for AND,OR,XOR gates for better visibility #657)
Signed-off-by: Amadeus1791 <[email protected]>
It looks like the changes in the LED led to some issues with grid alignment. |
The "Snap to Grid" is working. It's just that the LED is not where it's supposed to be. gef-classic/org.eclipse.gef.tests/src/org/eclipse/gef/test/swtbot/LogicDiagramTests.java Lines 139 to 142 in 804f418
The label snaps to the circuit, not to the connectors. Because the figure is now twice as large, the circuit starts at y = 52, rather than y = 50. And as a result, the position where the label is moved to is too far away for the "snap to grid" to be applied. |
Just a thought: If the size of the figures are doubled, then having a threshhold of only 5 pixels for the snap-to-grid is really low. Would it make sense to double that as well? |
Signed-off-by: Amadeus1791 <[email protected]>
Thanks for you feedback, I appreciate it a lot! I added a follow-up commit to fix grid and snap-to-geometry tests. Those two test were affected by the component size changes. It happened since the snap points shifted relative to the grid due to the changed component boundaries. |
@azoitl I think for the future, it would be better to just squash multiple commits. Or is there any benefit in keeping them separate? |
In this specific case I was not sure. Normally I do not squash if each of the commits is by itself an own independent contribution. I kept it separate because I didn't want to loos the information that changing sizes may have other impact. Not sure if that was good. |
This itself is fine, but I usually like to avoid doing a "rebase and merge" when there are multiple commits. Otherwise it's simply not obvious that both commits are related, if one would ever need to revert them. |
@ptziegler that is a good point. Will keep that in mind. |