on master help sign in
Fix rendering of links. Should fill only the space of the element.
commit5c0f1efd4d059d76b342d2f5d5d74aaf0b44de04 authorEvan Czaplicki <info@elm-lang.org> dateFri 2 Aug 2013, 15:21 (13 years ago) parent520c81f
1 file changed+5−2
runtime/Render/Element.js+5−2
runtime/Render/Element.js+5−2
@@ -18,9 +18,12 @@ function setProps(props, e) {
1818 if (props.href !== '') {
1919 var a = newElement('a');
2020 a.href = props.href;
21+ a.style.width = '100%';
22+ a.style.height = '100%';
23+ a.style.top = 0;
24+ a.style.left = 0;
2125 a.style.display = 'block';
22− a.appendChild(e);
23− return a;
26+ e.appendChild(a);
2427 }
2528 if (props.hover.ctor !== '_Tuple0') {
2629 var overCount = 0;