{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1268","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1268/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1268/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1268/events","html_url":"https://github.com/NativeScript/NativeScript/issues/1268","id":122599650,"number":1268,"title":"HtmlView on iOS resets font on binding change","user":{"login":"sitefinitysteve","id":1542376,"avatar_url":"https://avatars.githubusercontent.com/u/1542376?v=3","gravatar_id":"","url":"https://api.github.com/users/sitefinitysteve","html_url":"https://github.com/sitefinitysteve","followers_url":"https://api.github.com/users/sitefinitysteve/followers","following_url":"https://api.github.com/users/sitefinitysteve/following{/other_user}","gists_url":"https://api.github.com/users/sitefinitysteve/gists{/gist_id}","starred_url":"https://api.github.com/users/sitefinitysteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitefinitysteve/subscriptions","organizations_url":"https://api.github.com/users/sitefinitysteve/orgs","repos_url":"https://api.github.com/users/sitefinitysteve/repos","events_url":"https://api.github.com/users/sitefinitysteve/events{/privacy}","received_events_url":"https://api.github.com/users/sitefinitysteve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/T:Question","name":"T:Question","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"PanayotCankov","id":5919275,"avatar_url":"https://avatars.githubusercontent.com/u/5919275?v=3","gravatar_id":"","url":"https://api.github.com/users/PanayotCankov","html_url":"https://github.com/PanayotCankov","followers_url":"https://api.github.com/users/PanayotCankov/followers","following_url":"https://api.github.com/users/PanayotCankov/following{/other_user}","gists_url":"https://api.github.com/users/PanayotCankov/gists{/gist_id}","starred_url":"https://api.github.com/users/PanayotCankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanayotCankov/subscriptions","organizations_url":"https://api.github.com/users/PanayotCankov/orgs","repos_url":"https://api.github.com/users/PanayotCankov/repos","events_url":"https://api.github.com/users/PanayotCankov/events{/privacy}","received_events_url":"https://api.github.com/users/PanayotCankov/received_events","type":"User","site_admin":false},"assignees":[{"login":"PanayotCankov","id":5919275,"avatar_url":"https://avatars.githubusercontent.com/u/5919275?v=3","gravatar_id":"","url":"https://api.github.com/users/PanayotCankov","html_url":"https://github.com/PanayotCankov","followers_url":"https://api.github.com/users/PanayotCankov/followers","following_url":"https://api.github.com/users/PanayotCankov/following{/other_user}","gists_url":"https://api.github.com/users/PanayotCankov/gists{/gist_id}","starred_url":"https://api.github.com/users/PanayotCankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanayotCankov/subscriptions","organizations_url":"https://api.github.com/users/PanayotCankov/orgs","repos_url":"https://api.github.com/users/PanayotCankov/repos","events_url":"https://api.github.com/users/PanayotCankov/events{/privacy}","received_events_url":"https://api.github.com/users/PanayotCankov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2015-12-16T20:57:54Z","updated_at":"2016-08-23T19:52:12Z","closed_at":"2016-08-17T14:29:39Z","body":"Okay so use this example:\r\nhttps://gist.github.com/N3ll/f6c939539b6c0e0ae0e5\r\n\r\nSo basically any time you change the content bound to the html property, the font assigned gets reset...so need to keep re-calling this.  I mean the UIFont is still there but what's in the view is reset to Times, and you need to re-call the .ios.font on it.\r\n```\r\n        var contentHtmlView = page.getViewById(\"contentHtmlView\");\r\n        contentHtmlView.ios.font = UIFont.fontWithNameSize(fontName,fontSize);\r\n```\r\nWhen I change the property bound to viewModel\r\n```\r\n<HtmlView id=\"contentHtmlView\" html=\"{{ Content }}\"  />\r\n```\r\n\r\nVideo: http://www.screencast.com/t/0muA1wA5\r\n\r\nCode in the click of the video is just this\r\n```\r\nexports.onChangeContent = function(args){\r\n    var contentHtmlView = page.getViewById(\"contentHtmlView\");\r\n\r\n    viewModel.Content = \"Changed: ios.font is \" + contentHtmlView.ios.font;\r\n}\r\n```\r\nby default on page load contentHtmlView.ios.font is null"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/241855307","html_url":"https://github.com/NativeScript/NativeScript/issues/1268#issuecomment-241855307","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1268","id":241855307,"user":{"login":"sitefinitysteve","id":1542376,"avatar_url":"https://avatars.githubusercontent.com/u/1542376?v=3","gravatar_id":"","url":"https://api.github.com/users/sitefinitysteve","html_url":"https://github.com/sitefinitysteve","followers_url":"https://api.github.com/users/sitefinitysteve/followers","following_url":"https://api.github.com/users/sitefinitysteve/following{/other_user}","gists_url":"https://api.github.com/users/sitefinitysteve/gists{/gist_id}","starred_url":"https://api.github.com/users/sitefinitysteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitefinitysteve/subscriptions","organizations_url":"https://api.github.com/users/sitefinitysteve/orgs","repos_url":"https://api.github.com/users/sitefinitysteve/repos","events_url":"https://api.github.com/users/sitefinitysteve/events{/privacy}","received_events_url":"https://api.github.com/users/sitefinitysteve/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T19:52:12Z","updated_at":"2016-08-23T19:52:12Z","body":"@enchev Totally still an issue, can this re-open?\r\n\r\nVery simply just bind some value to the html property <HtmlView html=\"{{ property }}\" shows as just plain unformatted content."}}
{"actor":{"display_login":"sitefinitysteve"}}