Skip to content

Commit 1cd2d97

Browse files
authored
Makes div the same size as the countdown clock
This fixes layout problems that I've had with this since the div has a default height and width of 0px x 0px Changed code relative to #31 since it didn't work
1 parent fef78f9 commit 1cd2d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coffee/react-countdown-clock.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ ReactCountdownClock = CreateReactClass
174174
@_timer.fill()
175175

176176
render: ->
177-
<div ref='component' className="react-countdown-clock">
177+
<div ref='component' className="react-countdown-clock" style={width:{@props.size}, height:{@props.size}}>
178178
<canvas ref='background' style={ position: 'absolute' } width={@props.size} height={@props.size}></canvas>
179179
<canvas ref='timer' style={ position: 'absolute' } width={@props.size} height={@props.size}></canvas>
180180
</div>

0 commit comments

Comments
 (0)