piDefaultRowHeight - cWebDynamicObjectContainer
Sets the default minimum row height for each row that is not assigned via psRowHeights
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
{ WebProperty=Client }
Property Integer piDefaultRowHeight
| Access Type | Syntax |
|---|---|
| Read Access: | WebGet piDefaultRowHeight to IntegerVariable |
| Write Access: | WebSet piDefaultRowHeight to IntegerVariable/Value |
Description
Sets the default minimum row height for each row that is not assigned via psRowHeights
Default is 20 (pixels).
Default height rows will always claim this minimal pixel row height, and grow (if possible) according to their content. For example: With piDefaultRowHeight set to 50, an empty row will be 50 pixels high putting a 150px high WebList in a default height row will cause the row to stretch to match this 150 pixels. Putting a 40px high WebButton in the row will cause there to be 10 pixels of unused space, which will show as whitespace.
Format
Several types of values can be used:
Exact Pixel Values
Simply enter the desired number.
Percentages
(e.g.: "1/20%"). Makes the column a percentage of the total available width.
Fractions
(e.g: "1/1fr", "4/3fr"). Makes the column a fraction of the total available remaining width. For example: In a grid with exactly 4 columns that are each 1 fraction (1fr), each column will claim 1/4th of the total available width. If a 5th column is added that is exactly 20 pixels wide, then the other 4 columns will claim 1/4th of the total height that remains after subtracting the 20 pixels.
Advanced Clauses
Like minmax, max-content, etc. refer to the CSS Grid documentation for more information (CSS Grid Layout).
Note that CSS Grid is 1-based, but the DataFlex Grid Layout implementation is 0-based.
About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.