widgets/policycheck: update new syntax for Grid
* Columns,Row use create() functions * update from .add() to new .push() method Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -215,23 +215,23 @@ impl Template for PolicyCheckView {
|
||||
Grid::new()
|
||||
.id(ID_POLICY_CHECK_FORM)
|
||||
.columns(
|
||||
Columns::new()
|
||||
Columns::create()
|
||||
// Labels
|
||||
.add("250")
|
||||
.push("250")
|
||||
// Seperator
|
||||
.add("16")
|
||||
.push("16")
|
||||
// Values
|
||||
.add("100")
|
||||
.push("100")
|
||||
// Seperator
|
||||
.add("16")
|
||||
.push("16")
|
||||
// Result-Button
|
||||
.add("32")
|
||||
.push("32")
|
||||
.build(),
|
||||
)
|
||||
.rows(
|
||||
Rows::new()
|
||||
.add("auto")
|
||||
.add("auto")
|
||||
Rows::create()
|
||||
.push("auto")
|
||||
.push("auto")
|
||||
.build(),
|
||||
)
|
||||
.child(policy_check_form_row_0)
|
||||
@@ -280,19 +280,19 @@ impl Template for PolicyCheckView {
|
||||
Grid::new()
|
||||
.id(ID_POLICY_CHECK_WIDGET)
|
||||
.columns(
|
||||
Columns::new()
|
||||
.add(50)
|
||||
.add("*")
|
||||
.add(50)
|
||||
Columns::create()
|
||||
.push(50)
|
||||
.push("*")
|
||||
.push(50)
|
||||
.build(),
|
||||
)
|
||||
.rows(
|
||||
Rows::new()
|
||||
.add("auto")
|
||||
.add(28)
|
||||
.add("*")
|
||||
.add("auto")
|
||||
.add("auto")
|
||||
Rows::create()
|
||||
.push("auto")
|
||||
.push(28)
|
||||
.push("*")
|
||||
.push("auto")
|
||||
.push("auto")
|
||||
.build(),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user