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

Cannot allways drag parts out of group #3

Closed
martienvlent opened this issue Dec 21, 2014 · 1 comment
Closed

Cannot allways drag parts out of group #3

martienvlent opened this issue Dec 21, 2014 · 1 comment
Labels
bug An error in the library, extensions, documentation, or samples

Comments

@martienvlent
Copy link

In my apllication, when dragging a part out of a group, the group resizes after dropping. This happens because of the settings draggingTool.isGridSnapRealtime=false and isGridSnapEnabled=true.

For now, this works for me: isGridSnapEnabled=false and with custom snap-function in DraggingTool.prototype.doDeactivate and ExternalObjectsDropped:

function snapPartToGrid(part){
if(!(part instanceof go.Link)){
var csz=part.diagram.grid.gridCellSize,
grd=part.location.snapToGrid(0,0,csz.width,csz.height);
part.move(part.findObject(part.locationObjectName).actualBounds.copy().setSpot(grd.x,grd.y,part.locationSpot).position)
}
}

@martienvlent martienvlent changed the title Connot allways drag parts out of group Cannot allways drag parts out of group Dec 21, 2014
@simonsarris
Copy link
Collaborator

Thanks for finding and submitting this. We have fixed this issue in the just-released version 1.4.17.

@WalterNorthwoods WalterNorthwoods added the bug An error in the library, extensions, documentation, or samples label Oct 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the library, extensions, documentation, or samples
Projects
None yet
Development

No branches or pull requests

3 participants