{"action":"opened","issue":{"url":"https://api.github.com/repos/joshtynjala/feathers/issues/1132","labels_url":"https://api.github.com/repos/joshtynjala/feathers/issues/1132/labels{/name}","comments_url":"https://api.github.com/repos/joshtynjala/feathers/issues/1132/comments","events_url":"https://api.github.com/repos/joshtynjala/feathers/issues/1132/events","html_url":"https://github.com/joshtynjala/feathers/issues/1132","id":78068820,"number":1132,"title":"Incorrectly calculated the size of the Label","user":{"login":"alevys","id":1547157,"avatar_url":"https://avatars.githubusercontent.com/u/1547157?v=3","gravatar_id":"","url":"https://api.github.com/users/alevys","html_url":"https://github.com/alevys","followers_url":"https://api.github.com/users/alevys/followers","following_url":"https://api.github.com/users/alevys/following{/other_user}","gists_url":"https://api.github.com/users/alevys/gists{/gist_id}","starred_url":"https://api.github.com/users/alevys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alevys/subscriptions","organizations_url":"https://api.github.com/users/alevys/orgs","repos_url":"https://api.github.com/users/alevys/repos","events_url":"https://api.github.com/users/alevys/events{/privacy}","received_events_url":"https://api.github.com/users/alevys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T12:32:26Z","updated_at":"2015-05-19T12:32:26Z","closed_at":null,"body":"Hi! If Label be in the List, its height is not correctly calculated.\r\n\r\nExample:\r\n\r\n```\r\npackage game\r\n{\r\n\timport feathers.controls.List;\r\n\timport feathers.data.ListCollection;\r\n\timport feathers.layout.VerticalLayout;\r\n\r\n\timport starling.display.Quad;\r\n\r\n\tpublic class TestLabel extends List\r\n\t{\r\n\t\tpublic function TestLabel() {\r\n\t\t\tsuper();\r\n\t\t}\r\n\r\n\t\toverride protected function initialize():void {\r\n\t\t\tsuper.initialize();\r\n\r\n\t\t\tbackgroundSkin = new Quad(10, 10, 0xcccccc);\r\n\r\n\t\t\tvar layout:VerticalLayout = new VerticalLayout();\r\n\t\t\tlayout.gap = 5;\r\n\r\n\t\t\tthis.width = 300;\r\n\t\t\tthis.height = 600;\r\n\r\n\t\t\tthis.clipContent = false;\r\n\t\t\tthis.scrollBarDisplayMode = List.SCROLL_BAR_DISPLAY_MODE_NONE;\r\n\t\t\tthis.horizontalScrollPolicy = List.SCROLL_POLICY_OFF;\r\n\t\t\tthis.verticalScrollPolicy = List.SCROLL_POLICY_OFF;\r\n\t\t\tthis.layout = layout;\r\n\t\t\tthis.allowMultipleSelection = false;\r\n\t\t\tthis.isSelectable = false;\r\n\t\t\tthis.itemRendererType = Item;\r\n\t\t\tthis.dataProvider = new ListCollection([\r\n\t\t\t\t\t\t{val: \"Test text text text text text text text text text text text text text text text\"},\r\n\t\t\t\t\t\t{val: \"Test text text text text text text text text text text text text text text text\"},\r\n\t\t\t\t\t\t{val: \"Test text text text text text text text text text text text text text text text\"}]\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n}\r\n\r\nimport feathers.controls.Label;\r\nimport feathers.controls.renderers.DefaultListItemRenderer;\r\nimport feathers.controls.text.TextFieldTextRenderer;\r\nimport feathers.core.ITextRenderer;\r\n\r\nimport flash.text.TextFormat;\r\n\r\nclass Item extends DefaultListItemRenderer\r\n{\r\n\tpublic static function textEditorFactory():ITextRenderer {\r\n\t\treturn new TextFieldTextRenderer();\r\n\t}\r\n\r\n\tpublic var textFormat:TextFormat;\r\n\tprivate var _text:Label;\r\n\r\n\tpublic function Item() {\r\n\r\n\t}\r\n\r\n\toverride protected function initialize():void {\r\n\t\titemHasLabel = false;\r\n\r\n\t\ttextFormat = new TextFormat(\"Verdana\", 24, 0x000000);\r\n\r\n\t\t_text = new Label();\r\n\t\t_text.styleProvider = null;\r\n\t\t_text.textRendererFactory = textEditorFactory;\r\n\t\t_text.textRendererProperties.textFormat = textFormat;\r\n\t\t_text.textRendererProperties.wordWrap = true;\r\n\t\t_text.maxWidth = 200;\r\n\t\taddChild(_text);\r\n\t}\r\n\r\n\toverride protected function commitData():void {\r\n\t\tif (_data) {\r\n\t\t\tif (_data.hasOwnProperty(\"val\")) {\r\n\t\t\t\t_text.text = _data.val;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```"}}