{"action":"created","issue":{"url":"https://api.github.com/repos/bjorn/tiled/issues/1032","labels_url":"https://api.github.com/repos/bjorn/tiled/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/bjorn/tiled/issues/1032/comments","events_url":"https://api.github.com/repos/bjorn/tiled/issues/1032/events","html_url":"https://github.com/bjorn/tiled/issues/1032","id":95894059,"number":1032,"title":"Map Resize can erase Objects","user":{"login":"Chaoseiro","id":1577400,"avatar_url":"https://avatars.githubusercontent.com/u/1577400?v=3","gravatar_id":"","url":"https://api.github.com/users/Chaoseiro","html_url":"https://github.com/Chaoseiro","followers_url":"https://api.github.com/users/Chaoseiro/followers","following_url":"https://api.github.com/users/Chaoseiro/following{/other_user}","gists_url":"https://api.github.com/users/Chaoseiro/gists{/gist_id}","starred_url":"https://api.github.com/users/Chaoseiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chaoseiro/subscriptions","organizations_url":"https://api.github.com/users/Chaoseiro/orgs","repos_url":"https://api.github.com/users/Chaoseiro/repos","events_url":"https://api.github.com/users/Chaoseiro/events{/privacy}","received_events_url":"https://api.github.com/users/Chaoseiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T07:21:18Z","updated_at":"2016-01-24T10:27:02Z","closed_at":null,"body":"So, it's not really a Bug, just an implementation that I believe is too harsh on the user. Currently, when you resize a map to a smaller width or height, any Object that would stay off-map limits is erased.\r\nI believe a better implementation would be to or leave the objects on their original position, off-limits, or move them inside the map's new limits.\r\n\r\nWhy that? Well, at least in my case, I have one base map with all objects and properties set, and whenever I'll design a new level, I just resize this base map. The problem is when the new map is smaller than this base, since when the map is resized, any object that would stay off-limits is erased.\r\n\r\nI can undo and move the desired objects inside the new map's dimension, and of course I could leave all objects at (0,0), so this problem would not happen.\r\n\r\nBut I believe that the current implementation can be frustrating sometimes, since there's not even a warning \"Some objects will be erased, proceed?\".\r\n\r\nHere are two images to demonstrate this behavior, see the Door object layer hierarchy:\r\nBase Map (12x6 tiles):\r\n![basemap](https://cloud.githubusercontent.com/assets/1577400/8764959/0fdfbd62-2dcd-11e5-95ac-cafb4c13ef36.PNG)\r\n\r\nBase Map Resized (8x12 tiles):\r\n![basemapresized](https://cloud.githubusercontent.com/assets/1577400/8764960/15c1fe3e-2dcd-11e5-9af2-494027f49ada.PNG)\r\n\r\nPull Request #877 can solve this, since I won't need this base map anymore, but maybe that warning message would not hurt :P\r\n"},"comment":{"url":"https://api.github.com/repos/bjorn/tiled/issues/comments/174277254","html_url":"https://github.com/bjorn/tiled/issues/1032#issuecomment-174277254","issue_url":"https://api.github.com/repos/bjorn/tiled/issues/1032","id":174277254,"user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T10:27:02Z","updated_at":"2016-01-24T10:27:02Z","body":"@IMMZ Why an additional dialog instead of a checkbox like I suggested in my last comment?"}}