on master help sign in
Switch to using px to set text height instead of em.
commit340c2e7efa583238fb0b0fa39b626343ae1ca8ab authorEvan Czaplicki <evan@Evans-MacBook-Air.local> dateSun 23 Jun 2013, 04:48 (13 years ago) parentda9c493
2 files changed+2−2
libraries/Native/Text.js+1−1 libraries/Text.elm+1−1
libraries/Native/Text.js+1−1
@@ -71,7 +71,7 @@ Elm.Native.Text = function(elm) {
7171 }
7272 function size(px, text) { return addStyle('font-size', px + 'px', text) }
7373 var header = addTag('h1');
74− function height(h, text) { return addStyle('font-size', h+'em', text) }
74+ function height(h, text) { return addStyle('font-size', h+'px', text) }
7575 function italic(text) { return addStyle('font-style', 'italic', text) }
7676 var bold = addTag('b');
7777
libraries/Text.elm+1−1
@@ -21,7 +21,7 @@ header : Text -> Text
2121-- Create a link.
2222link : String -> Text -> Text
2323
24−-- Set the height of text in \"ems\". 1em is the normal height of text. 2ems is twice that height.
24+-- Set the height of text in pixels.
2525height : Float -> Text -> Text
2626
2727-- Set the color of a string.