Make lines 100% of the width of their container

This is part of the solution to #2701. Lines need to be 100% wide in
case a class styles their background.
This commit is contained in:
Ben Ogle
2014-06-23 22:46:27 -06:00
parent d57119793b
commit 9b577ecbf8

View File

@@ -129,7 +129,7 @@ LinesComponent = React.createClass
classes += 'line'
top = screenRow * lineHeightInPixels
lineHTML = "<div class=\"#{classes}\" style=\"position: absolute; top: #{top}px;\" data-screen-row=\"#{screenRow}\">"
lineHTML = "<div class=\"#{classes}\" style=\"position: absolute; top: #{top}px; width: 100%;\" data-screen-row=\"#{screenRow}\">"
if text is ""
lineHTML += @buildEmptyLineInnerHTML(line)