We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Resizing from any edge or corner behaves as expected
The majority of edges and corners result in the size of the item being shrunk to the minimum size
this seems to be because the cases handling different combinations of edges are incomplete. These lines in GridItem.vue do not handle all cases
if(edges.left && edges.bottom) { newSize.width = (Number(resizing.value?.width) - coreEvent.deltaX) / transformScale.value; newSize.height = (Number(resizing.value?.height) + coreEvent.deltaY) / transformScale.value; } else if(edges.right && edges.bottom && !edges.left && !edges.top) { newSize.width = (Number(resizing.value?.width) + coreEvent.deltaX) / transformScale.value; newSize.height = (Number(resizing.value?.height) + coreEvent.deltaY) / transformScale.value; } else if(edges.left && edges.top && !edges.bottom && !edges.right) { // } else if(edges.right && edges.top && !edges.bottom && !edges.left) { // } else if(edges.right && !edges.right && !edges.bottom && !edges.top) { newSize.width = (Number(resizing.value?.width) + coreEvent.deltaX) / transformScale.value; }
Something like this seems to be more comprehensive:
if (edges.left) { newSize.width = (Number(resizing.value?.width) - coreEvent.deltaX) / transformScale.value; } else if (edges.right) { newSize.width = (Number(resizing.value?.width) + coreEvent.deltaX) / transformScale.value; } else { newSize.width = resizing.value.width; } if (edges.top) { newSize.height = (Number(resizing.value?.height) - coreEvent.deltaY) / transformScale.value; } else if (edges.bottom) { newSize.height = (Number(resizing.value?.height) + coreEvent.deltaY) / transformScale.value; } else { newSize.height = resizing.value.height; }
The text was updated successfully, but these errors were encountered:
Partial fix for issue #13
526b7de
Reduced possibillitites for resizing.
Sorry, something went wrong.
gwinnem
No branches or pull requests
Expected Behavior
Resizing from any edge or corner behaves as expected
Current Behavior
The majority of edges and corners result in the size of the item being shrunk to the minimum size
Failure Information (for bugs)
Steps to Reproduce
Context
this seems to be because the cases handling different combinations of edges are incomplete. These lines in GridItem.vue do not handle all cases
Something like this seems to be more comprehensive:
The text was updated successfully, but these errors were encountered: