{"action":"created","issue":{"url":"https://api.github.com/repos/ajimix/Input-Framer/issues/13","repository_url":"https://api.github.com/repos/ajimix/Input-Framer","labels_url":"https://api.github.com/repos/ajimix/Input-Framer/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ajimix/Input-Framer/issues/13/comments","events_url":"https://api.github.com/repos/ajimix/Input-Framer/issues/13/events","html_url":"https://github.com/ajimix/Input-Framer/issues/13","id":229163787,"number":13,"title":"Wrapping text","user":{"login":"KingWalrus","id":1154580,"avatar_url":"https://avatars1.githubusercontent.com/u/1154580?v=3","gravatar_id":"","url":"https://api.github.com/users/KingWalrus","html_url":"https://github.com/KingWalrus","followers_url":"https://api.github.com/users/KingWalrus/followers","following_url":"https://api.github.com/users/KingWalrus/following{/other_user}","gists_url":"https://api.github.com/users/KingWalrus/gists{/gist_id}","starred_url":"https://api.github.com/users/KingWalrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingWalrus/subscriptions","organizations_url":"https://api.github.com/users/KingWalrus/orgs","repos_url":"https://api.github.com/users/KingWalrus/repos","events_url":"https://api.github.com/users/KingWalrus/events{/privacy}","received_events_url":"https://api.github.com/users/KingWalrus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-16T20:46:32Z","updated_at":"2017-05-17T08:24:49Z","closed_at":null,"body":"This is more of a question than an issue. Is it possible to get the text to wrap within the size of the input?\r\n\r\nPretty new to Framer and Cofeescript, but if not available, I may take a try at it. \r\n\r\nThanks. \r\n"},"comment":{"url":"https://api.github.com/repos/ajimix/Input-Framer/issues/comments/302021381","html_url":"https://github.com/ajimix/Input-Framer/issues/13#issuecomment-302021381","issue_url":"https://api.github.com/repos/ajimix/Input-Framer/issues/13","id":302021381,"user":{"login":"ajimix","id":30565,"avatar_url":"https://avatars2.githubusercontent.com/u/30565?v=3","gravatar_id":"","url":"https://api.github.com/users/ajimix","html_url":"https://github.com/ajimix","followers_url":"https://api.github.com/users/ajimix/followers","following_url":"https://api.github.com/users/ajimix/following{/other_user}","gists_url":"https://api.github.com/users/ajimix/gists{/gist_id}","starred_url":"https://api.github.com/users/ajimix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajimix/subscriptions","organizations_url":"https://api.github.com/users/ajimix/orgs","repos_url":"https://api.github.com/users/ajimix/repos","events_url":"https://api.github.com/users/ajimix/events{/privacy}","received_events_url":"https://api.github.com/users/ajimix/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T08:24:49Z","updated_at":"2017-05-17T08:24:49Z","body":"Hey @KingWalrus an `input` is not designed for this purpose. If you want to have the text wrap on it, you should use a textarea (and this module currently doesn't support textarea).\r\n\r\nBut you can \"hack\" a little bit your input to wrap the text around it. As I said is not very good to do as the `input` was not created for that purpose, but if you like to hack it, here is the code :)\r\n\r\n```coffeescript\r\n{Input} = require \"input\"\r\n\r\nsomeInput = new Input\r\n\tsetup: true\r\n\theight: 300\r\nsomeInput.style =\r\n\t\"word-wrap\": \"break-word\"\r\n\t\"word-break\": \"break-word\"\r\n```\r\n\r\nIf you feel adventurous and you want to adapt the code of this module to allow textareas too, go ahead and make a pull request, I'll be happy to review it and merge it :)"}}
{"actor":{"display_login":"ajimix"}}