The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix text are height

These changes was commited to the Birdfont repository Tue, 31 Mar 2015 17:02:44 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 31 Mar 2015 17:02:44 +0000]

Updated Files

libbirdfont/Renderer/TextArea.vala
--- a/libbirdfont/Renderer/TextArea.vala +++ b/libbirdfont/Renderer/TextArea.vala @@ -992,7 +992,7 @@ cr.save (); cr.set_line_width (1); Theme.color (cr, "Text Area Background"); - draw_rounded_rectangle (cr, x, y, this.width, this.height, padding); + draw_rounded_rectangle (cr, x, y, this.width, this.height - padding, padding); cr.fill (); cr.restore (); @@ -1000,7 +1000,7 @@ cr.save (); cr.set_line_width (1); Theme.color (cr, "Foreground 1"); - draw_rounded_rectangle (cr, x, y, this.width, this.height, padding); + draw_rounded_rectangle (cr, x, y, this.width, this.height - padding, padding); cr.stroke (); cr.restore (); }