-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fixed ZK-3074 : Listbox doesn't extends it width with hflex="min"…
… and predefined height
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
B80-ZK-3074.zul | ||
Purpose: | ||
Description: | ||
History: | ||
Tue, Jun 14, 2016 12:36:45 PM, Created by Sefi | ||
Copyright (C) Potix Corporation. All Rights Reserved. | ||
--> | ||
<zk> | ||
<zscript><![CDATA[ | ||
String[] data = new String[500]; | ||
for (int i = 0; i < 500; i++) data[i] = (i*i*i).toString(); | ||
ListModelList myModel = new ListModelList(data); | ||
DefaultTreeNode[] nodes = new DefaultTreeNode[data.length]; | ||
for (int i = 0; i < data.length; i++) nodes[i] = new DefaultTreeNode(data[i]); | ||
TreeModel treeModel = new DefaultTreeModel( new DefaultTreeNode(null, nodes)); | ||
]]></zscript> | ||
<label multiline="true"> | ||
1.load the zul | ||
2.the Listbox should extend its width to eliminate the horizontal | ||
</label> | ||
<listbox height="250px" model="${myModel}" hflex="min"/> | ||
<grid height="250px" model="${myModel}" hflex="min"/> | ||
<tree height="250px" model="${treeModel}" hflex="min"/> | ||
</zk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters