Skip to content

Commit

Permalink
[Tufte/Component/Background.pm] Render background in .draw().
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongwen Qiu committed Jul 14, 2010
1 parent 6525b14 commit 17bf9b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Tufte/Component/Background.pm
Expand Up @@ -27,6 +27,12 @@ class Tufte::Component::Background is Tufte::Component::Base {

}

# Render background (maybe)
$svg.drawings.push: :rect[
width => %bounds<width>, height => %bounds<height>,
:x<0>, :y<0>, fill => $fill
] if $fill;

}
}

Expand Down

0 comments on commit 17bf9b5

Please sign in to comment.