This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push: new a27bb5e jewel-todomvc-example: some latest changes a27bb5e is described below commit a27bb5ea26119d3b5136dad32c777bd878ecc5d2 Author: Carlos Rovira <carlosrov...@apache.org> AuthorDate: Thu Jan 30 23:17:00 2020 +0100 jewel-todomvc-example: some latest changes --- examples/jewel/todomvc/src/main/resources/todomvc-styles.css | 1 + .../src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml | 2 +- .../todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/jewel/todomvc/src/main/resources/todomvc-styles.css b/examples/jewel/todomvc/src/main/resources/todomvc-styles.css index 6002d7a..3b6d078 100644 --- a/examples/jewel/todomvc/src/main/resources/todomvc-styles.css +++ b/examples/jewel/todomvc/src/main/resources/todomvc-styles.css @@ -218,6 +218,7 @@ todomvc|TodoListSection /* ItemRenderer */ .jewel.item { padding: 0px; + min-height: 55px; } .todo-list li { diff --git a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml index 55284af..83f1218 100644 --- a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml +++ b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml @@ -118,7 +118,7 @@ limitations under the License. visible.normal="true" visible.editing="false" click="changeItemState(event);"/> - <j:Label localId="description" width="100%" + <j:Label localId="description" width="84%" text="{item ? item.label : ''}" multiline="true" visible.normal="true" visible.editing="false" className="{item ? (item.done ? 'todolabel completed' : 'todolabel') : 'todolabel' }" diff --git a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml index d3f5298..47e5b8f 100644 --- a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml +++ b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml @@ -27,7 +27,7 @@ limitations under the License. <fx:Script> <![CDATA[ import jewel.todomvc.models.TodoModel; - + import org.apache.royale.core.IBeadModel; import org.apache.royale.routing.RouteState; @@ -81,7 +81,7 @@ limitations under the License. </html:Header> <html:Section localId="main"> - <j:List localId="todolist" width="100%" rowHeight="55" + <j:List localId="todolist" width="100%" labelField="label" className="todo-list" dataProvider="{todoModel.listItems}"> <j:beads>