Commit c509638
Fix ui padding
Changed files (3)
Diff
@@ -35,7 +35,7 @@ class BoxLayout : Component { 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) {@@ -25,25 +25,25 @@ public abstract class Component : GLib.Object { 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 @@ public abstract class Component : GLib.Object { 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; @@ -543,7 +543,7 @@ def make_birdfont_test(target_binary, deps): $(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 @@ def make_birdui(target_binary, deps): $(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',