Skip to content

Conversation

@prestonparris
Copy link

This is a fix so that when using resizable grid and resizable ghost the snapping to grid functionality still works. Previously if you try to use both, the ghost will adhere to the grid, but once you let go of the click it will resize the element to the last place your mouse is at and disregards the grid. This code in _mouseStop fixes this by doing a check to see if both properties exist. If they do then it runs through the grid logic before resizing. This code can definitely be optimized and im open to suggestions. I just ran into this issue when trying to use both together and this was the fix that worked for me.

…g to grid functionality still works. Previously if you try to use both, the ghost will adhere to the grid, but once you let go of the click it will resize the element to the last place your mouse is at and disregards the grid. This code in _mouseStop fixes this by doing a check to see if both properties exist. If they do then it runs through the grid logic before resizing. This code can definitely be optimized and im open to suggestions. I just ran into this issue when trying to use both together and this was the fix that worked for me.
@georgemarshall
Copy link
Contributor

This patch is an incomplete fix which is a partial fix to the problem.

@scottgonzalez
Copy link
Member

Thanks for your patch, but the ghost and grid options are both planned for removal as part of our current API redesign.

@georgemarshall
Copy link
Contributor

On the lines of API redesign what are the plans for testing of UI objects? Will something like https://github.com/windmill/windmill be used to help test object interaction?

@scottgonzalez
Copy link
Member

We use QUnit and TestSwarm for testing.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants