js: Fix some js examples usage of orient API
This was not tested. How to test js?
This commit is contained in:
parent
db4950ba2f
commit
cec45f616a
|
@ -27,8 +27,8 @@ win.setContent(bigbox);
|
|||
|
||||
bx = new efl.Efl.Ui.Box(win);
|
||||
bx.setHintWeight(1.0, 1.0);
|
||||
bx_orient = bx.cast("Efl.Orientation");
|
||||
bx_orient.setOrientation(efl.Efl.Orient.VERTICAL);
|
||||
bx_orient = bx.cast("Efl.Ui.Direction");
|
||||
bx_orient.setOrientation(efl.Efl.Ui.Dir.VERTICAL);
|
||||
bigbox.packEnd(bx);
|
||||
bx.setVisible(true);
|
||||
|
||||
|
@ -47,8 +47,8 @@ bt.on('clicked', _clear_cb);
|
|||
bx = new efl.Efl.Ui.Box(win)
|
||||
bx.setHintWeight(1.0, 1.0);
|
||||
bx.setHintAlign(-1.0, -1.0);
|
||||
bx_orient = bx.cast("Efl.Orientation");
|
||||
bx_orient.setOrientation(efl.Efl.Orient.HORIZONTAL);
|
||||
bx_orient = bx.cast("Efl.Ui.Direction");
|
||||
bx_orient.setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
|
||||
bigbox.packEnd(bx);
|
||||
bx.setVisible(true);
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ win.setContent(box);
|
|||
box.setVisible(true);
|
||||
|
||||
box_initial = new efl.Efl.Ui.Box(win);
|
||||
box_initial.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL);
|
||||
box_initial.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
|
||||
box_initial.setHintWeight(1.0, 0.0);
|
||||
box.packEnd(box_initial);
|
||||
box_initial.setVisible(true);
|
||||
|
@ -114,7 +114,7 @@ btn3.setVisible(true);
|
|||
btn3.on('clicked', _btn_options_cb);
|
||||
|
||||
box_gap = new efl.Efl.Ui.Box(win);
|
||||
box_gap.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL);
|
||||
box_gap.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
|
||||
box_gap.setHintWeight(1.0, 0.0);
|
||||
box.packEnd(box_gap);
|
||||
box_gap.setVisible(true);
|
||||
|
@ -151,7 +151,7 @@ icon_up.setIcon("arrow_up");
|
|||
setIcon(up, icon_up);
|
||||
|
||||
box_inferior = new efl.Efl.Ui.Box(win);
|
||||
box_inferior.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL);
|
||||
box_inferior.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
|
||||
box_inferior.setHintWeight(1.0, 1.0);
|
||||
box_inferior.setHintAlign(-1.0, -1.0);
|
||||
box.packEnd(box_inferior);
|
||||
|
|
|
@ -10,7 +10,7 @@ win.setText("Radio");
|
|||
win.setAutohide(true);
|
||||
|
||||
bx = new efl.Efl.Ui.Box(win);
|
||||
bx.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL);
|
||||
bx.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
|
||||
bx.setHintWeight(1.0, 1.0);
|
||||
win.setContent(bx);
|
||||
bx.setVisible(true);
|
||||
|
|
|
@ -6,7 +6,7 @@ win.setText("Slider Example");
|
|||
win.setAutohide(true);
|
||||
|
||||
bx = new efl.Efl.Ui.Box(win);
|
||||
bx.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL);
|
||||
bx.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
|
||||
bx.setHintWeight(1.0, 1.0);
|
||||
win.setContent(bx);
|
||||
bx.setVisible(true);
|
||||
|
@ -66,7 +66,7 @@ sl.setVisible(true);
|
|||
|
||||
/* vertical with indicator format func */
|
||||
sl = new efl.Elm.Slider(win);
|
||||
sl.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.VERTICAL);
|
||||
sl.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.VERTICAL);
|
||||
//indicator_format = function()
|
||||
// {
|
||||
// indicator = new char[32];
|
||||
|
|
|
@ -34,8 +34,8 @@ tweet_box.setHintAlign(-1.0, -1.0);
|
|||
tweet_box.setPackPadding(0.0, 30.0, true);
|
||||
box.packEnd(tweet_box);
|
||||
|
||||
tweet_box_orient = tweet_box.cast("Efl.Orientation");
|
||||
tweet_box_orient.setOrientation(efl.Efl.Orient.VERTICAL);
|
||||
tweet_box_orient = tweet_box.cast("Efl.Ui.Direction");
|
||||
tweet_box_orient.setOrientation(efl.Efl.Ui.Dir.VERTICAL);
|
||||
|
||||
icon_array = new Array();
|
||||
|
||||
|
|
Loading…
Reference in New Issue