{"action":"created","issue":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2199","repository_url":"https://api.github.com/repos/codenameone/CodenameOne","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2199/labels{/name}","comments_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2199/comments","events_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2199/events","html_url":"https://github.com/codenameone/CodenameOne/issues/2199","id":254688341,"number":2199,"title":"Text font-size is incorrect on BrowserComponent inside the simulator?","user":{"login":"jsfan3","id":1997316,"avatar_url":"https://avatars3.githubusercontent.com/u/1997316?v=4","gravatar_id":"","url":"https://api.github.com/users/jsfan3","html_url":"https://github.com/jsfan3","followers_url":"https://api.github.com/users/jsfan3/followers","following_url":"https://api.github.com/users/jsfan3/following{/other_user}","gists_url":"https://api.github.com/users/jsfan3/gists{/gist_id}","starred_url":"https://api.github.com/users/jsfan3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsfan3/subscriptions","organizations_url":"https://api.github.com/users/jsfan3/orgs","repos_url":"https://api.github.com/users/jsfan3/repos","events_url":"https://api.github.com/users/jsfan3/events{/privacy}","received_events_url":"https://api.github.com/users/jsfan3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T16:16:44Z","updated_at":"2017-09-02T06:12:59Z","closed_at":"2017-09-02T06:12:59Z","author_association":"NONE","body":"I attach two screenshot of the simulator, the java code and the html code: the text has a readable size using the iPhone3gs.skin, but it's very very small (quite unreadable) using other skins like SamsungS7.skin. I don't know why, I hope that the text will be correctly sized on real devices with a good-readable default font size. Is it a fixable issue of the simulator? Can somebody do a test with a real SamsungS7 device? \r\n\r\n![iphone3gsskin](https://user-images.githubusercontent.com/1997316/29978369-37f94372-8f41-11e7-80c2-f5ae236ee6fe.png)\r\n![samsungs7skin](https://user-images.githubusercontent.com/1997316/29978370-38027fe6-8f41-11e7-9b35-ddd66711dd23.png)\r\n\r\nJava code:\r\n```\r\n// Create the BrowserComponent\r\n        BrowserComponent browser = new BrowserComponent();\r\n\r\n        try {\r\n            // Load a web page placed in the \"html\" package\r\n            browser.setURLHierarchy(\"/index.html\");\r\n            Log.p(\"setURLHierarchy executed\");\r\n        } catch (IOException ex) {\r\n            Log.e(ex);\r\n        }\r\n\r\n        hi.add(BorderLayout.CENTER, browser);\r\n```\r\n\r\nindex.html:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n    <head>\r\n        <meta charset=\"UTF-8\">\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    </head>\r\n    <body>\r\n        <a href=\"page1.html\">Page 1</a><br />\r\n        <a href=\"page2.html\">Page 2</a><br />\r\n        <a href=\"page3.html\">Page 3</a><br />\r\n    </body>\r\n</html>\r\n```\r\n\r\nPlease note that adding the following style doesn't change anything:\r\n```\r\n\t<style type=\"text/css\">\r\n            body {font-size: 1.0em; }\r\n        </style>\r\n```\r\n\r\nIf I use \"mm\" in the CSS, like in the following one, the problem persists:\r\n```\r\n        <style type=\"text/css\">\r\n            body {font-size: 5.0mm; }\r\n        </style>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/comments/326725135","html_url":"https://github.com/codenameone/CodenameOne/issues/2199#issuecomment-326725135","issue_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2199","id":326725135,"user":{"login":"codenameone","id":2353641,"avatar_url":"https://avatars1.githubusercontent.com/u/2353641?v=4","gravatar_id":"","url":"https://api.github.com/users/codenameone","html_url":"https://github.com/codenameone","followers_url":"https://api.github.com/users/codenameone/followers","following_url":"https://api.github.com/users/codenameone/following{/other_user}","gists_url":"https://api.github.com/users/codenameone/gists{/gist_id}","starred_url":"https://api.github.com/users/codenameone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenameone/subscriptions","organizations_url":"https://api.github.com/users/codenameone/orgs","repos_url":"https://api.github.com/users/codenameone/repos","events_url":"https://api.github.com/users/codenameone/events{/privacy}","received_events_url":"https://api.github.com/users/codenameone/received_events","type":"User","site_admin":false},"created_at":"2017-09-02T06:12:59Z","updated_at":"2017-09-02T06:12:59Z","author_association":"OWNER","body":"Codename One is a mobile Java framework not an HTML framework. If you write HTML you need to use responsive HTML code to adapt to DPI/resolution. We don't provide an HTML framework, there are plenty of those in the market. If you use one of those the text will adapt properly."}}
{"actor":{"display_login":"codenameone"}}