path: root/reference
diff options
authorXavi Artigas <xavierartigas@yahoo.es>2019-04-30 18:50:47 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-30 18:56:39 +0200
commitfdeb87bb751d7f8818e1df9a3d8925dd8721e2e7 (patch)
treea72ce1f0f627cf44a8790a77f1a17b3203b2de26 /reference
parentmono-examples: Adapt to changes in Efl.Pack (diff)
Fix alignment of some widgets
Summary: Commit 78ae9c0ae069ff86e701ff98cf5674cc491ee156 introduced a new API (efl_gfx_hint_fill_set) and changed the default behavior of aligned widgets. The same commit made the necessary changes to all examples in the efl repo, but not in the examples repo. This patch here aligns the widgets again they way they were meant to. We have gone 6 months without anybody noticing that the examples did not render correctly... let's try and add some unit tests later. Test Plan: Try the hello-gui c tutorial. The text should be centered instead of in a corner. Reviewers: YOhoho, bu5hm4n Differential Revision: https://phab.enlightenment.org/D8791
Diffstat (limited to 'reference')
1 files changed, 1 insertions, 0 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index cc806f74..43170be1 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -30,6 +30,7 @@ public class Example : Efl.Csharp.Application
for (int i = 0; i< 5; i++) {
var checkbox = new Efl.Ui.Check(vbox);
checkbox.SetText("Check " + i);
+ checkbox.SetHintFill(false, false);
checkbox.SetHintAlign(0.5, 0.5);
checkbox.FocusChangedEvt += FocusChangedCb;