{"action":"created","issue":{"url":"https://api.github.com/repos/lxde/pcmanfm-qt/issues/97","labels_url":"https://api.github.com/repos/lxde/pcmanfm-qt/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/lxde/pcmanfm-qt/issues/97/comments","events_url":"https://api.github.com/repos/lxde/pcmanfm-qt/issues/97/events","html_url":"https://github.com/lxde/pcmanfm-qt/issues/97","id":45475563,"number":97,"title":"Align icons to grid on desktop","user":{"login":"paulolieuthier","id":1238157,"avatar_url":"https://avatars.githubusercontent.com/u/1238157?v=3","gravatar_id":"","url":"https://api.github.com/users/paulolieuthier","html_url":"https://github.com/paulolieuthier","followers_url":"https://api.github.com/users/paulolieuthier/followers","following_url":"https://api.github.com/users/paulolieuthier/following{/other_user}","gists_url":"https://api.github.com/users/paulolieuthier/gists{/gist_id}","starred_url":"https://api.github.com/users/paulolieuthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulolieuthier/subscriptions","organizations_url":"https://api.github.com/users/paulolieuthier/orgs","repos_url":"https://api.github.com/users/paulolieuthier/repos","events_url":"https://api.github.com/users/paulolieuthier/events{/privacy}","received_events_url":"https://api.github.com/users/paulolieuthier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lxde/pcmanfm-qt/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"PCMan","id":46543,"avatar_url":"https://avatars.githubusercontent.com/u/46543?v=3","gravatar_id":"","url":"https://api.github.com/users/PCMan","html_url":"https://github.com/PCMan","followers_url":"https://api.github.com/users/PCMan/followers","following_url":"https://api.github.com/users/PCMan/following{/other_user}","gists_url":"https://api.github.com/users/PCMan/gists{/gist_id}","starred_url":"https://api.github.com/users/PCMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCMan/subscriptions","organizations_url":"https://api.github.com/users/PCMan/orgs","repos_url":"https://api.github.com/users/PCMan/repos","events_url":"https://api.github.com/users/PCMan/events{/privacy}","received_events_url":"https://api.github.com/users/PCMan/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2014-10-10T12:31:43Z","updated_at":"2016-01-13T02:01:26Z","closed_at":null,"body":"There should be an option for that."},"comment":{"url":"https://api.github.com/repos/lxde/pcmanfm-qt/issues/comments/171129228","html_url":"https://github.com/lxde/pcmanfm-qt/issues/97#issuecomment-171129228","issue_url":"https://api.github.com/repos/lxde/pcmanfm-qt/issues/97","id":171129228,"user":{"login":"tsujan","id":981076,"avatar_url":"https://avatars.githubusercontent.com/u/981076?v=3","gravatar_id":"","url":"https://api.github.com/users/tsujan","html_url":"https://github.com/tsujan","followers_url":"https://api.github.com/users/tsujan/followers","following_url":"https://api.github.com/users/tsujan/following{/other_user}","gists_url":"https://api.github.com/users/tsujan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsujan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsujan/subscriptions","organizations_url":"https://api.github.com/users/tsujan/orgs","repos_url":"https://api.github.com/users/tsujan/repos","events_url":"https://api.github.com/users/tsujan/events{/privacy}","received_events_url":"https://api.github.com/users/tsujan/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T02:01:26Z","updated_at":"2016-01-13T02:01:26Z","body":"> However, if the spacing will become an option in pcmanfm-qt, than we shouldn't change it to fit one more icon\r\n\r\nExactly! Neither should we spread the icons.\r\n\r\nA few hours ago, I tried the above method and got good results. In the image below, the left half shows desktop icons arranged as before, while the right half shows the same icons with the algorithm applied: one row is added at the bottom and there's no large gap anymore.\r\n\r\n![comparison](https://cloud.githubusercontent.com/assets/981076/12282839/adefd670-b9b6-11e5-98d1-e974e93e45ff.png)\r\n\r\nSo far, so good. If a setting is added for margins, I'll set a condition in the code for this optimization to be used only with the default settings because when the user chooses a specific margin, he wants it unchanged -- as you mentioned."}}