The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix ui padding

These changes was commited to the Birdfont repository Tue, 28 Jun 2016 16:59:11 +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, 28 Jun 2016 16:59:11 +0000]

Updated Files

birdui/BoxLayout.vala
birdui/Component.vala
dodo.py
--- a/birdui/BoxLayout.vala +++ b/birdui/BoxLayout.vala @@ -35,7 +35,7 @@ public override void draw (Context cairo) { cairo.save (); - cairo.translate (padded_x, padded_y); + cairo.translate (x, y); clip (cairo); foreach (Component component in components) {
--- a/birdui/Component.vala +++ b/birdui/Component.vala @@ -25,25 +25,25 @@ public double padded_width { get { - return width + get_padding_top () + get_padding_bottom (); + return width + get_padding_left () + get_padding_right (); } } public double padded_height { get { - return height + get_padding_left () + get_padding_right (); + return height + get_padding_top () + get_padding_bottom (); } } public double padded_x { get { - return x + get_padding_top (); + return x + get_padding_left (); } } public double padded_y { get { - return y + get_padding_left (); + return y + get_padding_top (); } } @@ -62,8 +62,8 @@ Defs defs = new Defs (); protected SvgStyle style = new SvgStyle (); - string? css_class = null; - string? id = null; + public string? css_class = null; + public string? id = null; Overflow overflow = Overflow.VISIBLE;
diff --git a/dodo.py b/dodo.py
--- a/dodo.py +++ b/dodo.py @@ -543,7 +543,7 @@ $(pkg-config --libs cairo) \ $(pkg-config --libs glib-2.0) \ $(pkg-config --libs xmlbird) \ - -L./build -L./build/bin -l birdgems -l svgbird\ + -L./build -L./build/bin -l birdgems -l svgbird \ -o build/bin/""" + target_binary test = Builder('birdfont-test', @@ -596,7 +596,7 @@ $(pkg-config --libs gobject-2.0) \ $(pkg-config --libs xmlbird) \ $(pkg-config --libs """ + config.GEE + """) \ - -L ./build/bin -l m -l svgbird \ + -L./build -L./build/bin -l m -l svgbird \ -o build/bin/""" + target_binary libbirdgems = Builder('birdui',