This is an automated email from the ASF dual-hosted git repository.

piotrz 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 851d820  tour-de-jewel: Add another DataGrid to show issue with 
height="100%"
851d820 is described below

commit 851d8201043721e793ad76f3e2c450bad96b889f
Author: Piotr Zarzycki <piotrzarzyck...@gmail.com>
AuthorDate: Tue Mar 17 13:28:13 2020 +0100

    tour-de-jewel: Add another DataGrid to show issue with height="100%"
---
 .../src/main/royale/DataGridPlayGround.mxml        | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git 
a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml 
b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index 5a9a296..49f8789 100644
--- a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -487,6 +487,31 @@ limitations under the License.
                                </j:DataGrid>
                        </j:Card>
                </j:GridCell>
+               <j:GridCell desktopNumerator="1" desktopDenominator="2" 
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" 
phoneDenominator="1">
+                       <j:Card>
+                               <html:H3 text="Jewel DataGrid"/>
+                               
+                               <j:Label text="Setup fixed width of DataGrid to 
700px and height to 100% after initComplete. Last column has columnWidth=40, 
rowHeight=42."
+                                       multiline="true"/>
+
+                               <j:DataGrid width="700" height="100%" 
emphasis="secondary" rowHeight="42">
+                                       <j:beads>
+                                               <js:ConstantBinding
+                                                       sourceID="listModel"
+                                                       
sourcePropertyName="iconDetailListData"
+                                                       
destinationPropertyName="dataProvider"/>
+                                               
<j:RemoveDataGridItemRendererForArrayListData/>
+                                       </j:beads>
+                                       <j:columns>
+                                               <j:DataGridColumn label="Icon" 
+                                                                               
itemRenderer="itemRenderers.IconDataGridItemRenderer"/>
+                                               <j:DataGridColumn label="Label" 
dataField="label" align="center"/>
+                                               <j:DataGridColumn label="Is 
Jewel?" columnWidth="40"
+                                                                               
itemRenderer="itemRenderers.CheckBoxDataGridItemRenderer"/>
+                                       </j:columns>
+                               </j:DataGrid>
+                       </j:Card>
+               </j:GridCell>
        </j:Grid>
 
 </c:ExampleAndSourceCodeTabbedSectionContent>

Reply via email to