Skip to content

Commit

Permalink
add log for GXFlexBox
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Jul 24, 2023
1 parent 9fb1333 commit 9278097
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ data class GXFlexBox(
internal var maxSizeForTemplate: Size<GXSize?>? = null,
internal var aspectRatioForTemplate: Float? = null
) {



private var displayForExtend: Display? = null
private var positionTypeForExtend: PositionType? = null
private var directionForExtend: Direction? = null
Expand Down Expand Up @@ -391,6 +394,10 @@ data class GXFlexBox(
}
}

override fun toString(): String {
return "GXFlexBox(display=$display, positionType=$positionType, direction=$direction, flexDirection=$flexDirection, flexWrap=$flexWrap, overflow=$overflow, alignItems=$alignItems, alignSelf=$alignSelf, alignContent=$alignContent, justifyContent=$justifyContent, flexGrow=$flexGrow, flexShrink=$flexShrink, aspectRatio=$aspectRatio, flexBasis=$flexBasis, maxSize=$maxSize, minSize=$minSize, size=$size, border=$border, padding=$padding, margin=$margin, position=$position)"
}

val display: Display?
get() {
return displayForExtend ?: displayForTemplate
Expand Down

0 comments on commit 9278097

Please sign in to comment.