{"action":"created","issue":{"url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder/issues/133","repository_url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder","labels_url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder/issues/133/comments","events_url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder/issues/133/events","html_url":"https://github.com/kasemir/org.csstudio.display.builder/issues/133","id":184281004,"number":133,"title":"Snap to grid still doesn't work","user":{"login":"claudio-rosati","id":10833922,"avatar_url":"https://avatars.githubusercontent.com/u/10833922?v=3","gravatar_id":"","url":"https://api.github.com/users/claudio-rosati","html_url":"https://github.com/claudio-rosati","followers_url":"https://api.github.com/users/claudio-rosati/followers","following_url":"https://api.github.com/users/claudio-rosati/following{/other_user}","gists_url":"https://api.github.com/users/claudio-rosati/gists{/gist_id}","starred_url":"https://api.github.com/users/claudio-rosati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudio-rosati/subscriptions","organizations_url":"https://api.github.com/users/claudio-rosati/orgs","repos_url":"https://api.github.com/users/claudio-rosati/repos","events_url":"https://api.github.com/users/claudio-rosati/events{/privacy}","received_events_url":"https://api.github.com/users/claudio-rosati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T16:40:53Z","updated_at":"2016-10-20T17:01:33Z","closed_at":null,"body":"Snap to grid still doesn't work properly: when a new object is dropped into the editor both location and size is not initially snapped to grid (initial size snapping can be verified changing the grid size to 11, for example)."},"comment":{"url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder/issues/comments/255165770","html_url":"https://github.com/kasemir/org.csstudio.display.builder/issues/133#issuecomment-255165770","issue_url":"https://api.github.com/repos/kasemir/org.csstudio.display.builder/issues/133","id":255165770,"user":{"login":"kasemir","id":1932421,"avatar_url":"https://avatars.githubusercontent.com/u/1932421?v=3","gravatar_id":"","url":"https://api.github.com/users/kasemir","html_url":"https://github.com/kasemir","followers_url":"https://api.github.com/users/kasemir/followers","following_url":"https://api.github.com/users/kasemir/following{/other_user}","gists_url":"https://api.github.com/users/kasemir/gists{/gist_id}","starred_url":"https://api.github.com/users/kasemir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasemir/subscriptions","organizations_url":"https://api.github.com/users/kasemir/orgs","repos_url":"https://api.github.com/users/kasemir/repos","events_url":"https://api.github.com/users/kasemir/events{/privacy}","received_events_url":"https://api.github.com/users/kasemir/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T17:01:33Z","updated_at":"2016-10-20T17:01:33Z","body":"Same behaviour as in BOY: When dropping a new widget into the display, it's dropped with its initial size ( #131 ) at the drop location.\r\nFrom then on, when moving/resizing the widget interactively, the `SelectedWidgetUITracker` (rectangle with handles on the 4 corners and midpoints) will snap to the grid and/or to other widgets.\r\n\r\nSomewhat related: When entering specific values for the X, Y, Width, Height properties, they are used as provided without regarding grid or other widgets.\r\n\r\nI don't see immediate need to change this behaviour, it's no show stopper for us.\r\nStill, a possible improvement could be this:\r\nWhen dragging a new widget into the display, the tracker appears right away, and the X/Y coordinate respects the grid and/or other widgets (if grid and/or snap-to-widgets is enabled).\r\nWould be a little more convenient, because eliminates need to select & move each newly dropped widget.\r\nMight be a little tricky to implement. The tracker currently operates on one or more widgets that are selected in the model. To support this new behavioer, the tracker would need to operate on a widget that doesn't actually exist, yet, in the model. It's only the outline of what's dragged in, but hasn't been dropped, and might actually never be dropped."}}
{"actor":{"display_login":"kasemir"}}