Clone in a terminal:
Commit c509638
Johan Mattsson - 2016-06-28T16:59:11+00:00
c509638f16ff4fdfa38f465fce7ae78e1ea6e1e4johan.mattsson.m@gmail.com

Fix ui padding

Changed files (3)

Diff

diff --git a/birdui/BoxLayout.vala b/birdui/BoxLayout.valaindex df7ee8d..2105eb3 100644--- a/birdui/BoxLayout.vala+++ b/birdui/BoxLayout.vala@@ -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) {diff --git a/birdui/Component.vala b/birdui/Component.valaindex f410e59..76bffef 100644--- a/birdui/Component.vala+++ b/birdui/Component.vala@@ -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; diff --git a/dodo.py b/dodo.pyindex 3a7d578..b9d24c2 100644--- a/dodo.py+++ b/dodo.py@@ -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',

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112