| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1164,24 +1164,24 @@ export class FlexboxLayout extends FlexboxLayoutBase { | |||
| 1164 | 1164 | childBottom = height - paddingBottom; | |
| 1165 | 1165 | break; | |
| 1166 | 1166 | case JustifyContent.FLEX_END: | |
| 1167 | - childTop = height - flexLine._mainSize + paddingBottom; | ||
| 1168 | - childBottom = flexLine._mainSize - paddingTop; | ||
| 1167 | + childTop = height - flexLine._mainSize - paddingBottom; | ||
| 1168 | + childBottom = flexLine._mainSize + paddingTop; | ||
| 1169 | 1169 | break; | |
| 1170 | 1170 | case JustifyContent.CENTER: | |
| 1171 | - childTop = paddingTop + (height - flexLine._mainSize) / 2.0; | ||
| 1172 | - childBottom = height - paddingBottom - (height - flexLine._mainSize) / 2.0; | ||
| 1171 | + childTop = paddingTop + (height - insets.top - insets.bottom - flexLine._mainSize) / 2.0; | ||
| 1172 | + childBottom = height - paddingBottom - (height - insets.top - insets.bottom - flexLine._mainSize) / 2.0; | ||
| 1173 | 1173 | break; | |
| 1174 | 1174 | case JustifyContent.SPACE_AROUND: | |
| 1175 | 1175 | if (flexLine._itemCount !== 0) { | |
| 1176 | - spaceBetweenItem = (height - flexLine._mainSize) / flexLine.itemCount; | ||
| 1176 | + spaceBetweenItem = (height - insets.top - insets.bottom - flexLine._mainSize) / flexLine.itemCount; | ||
| 1177 | 1177 | } | |
| 1178 | 1178 | childTop = paddingTop + spaceBetweenItem / 2.0; | |
| 1179 | 1179 | childBottom = height - paddingBottom - spaceBetweenItem / 2.0; | |
| 1180 | 1180 | break; | |
| 1181 | 1181 | case JustifyContent.SPACE_BETWEEN: | |
| 1182 | 1182 | childTop = paddingTop; | |
| 1183 | 1183 | let denominator = flexLine.itemCount !== 1 ? flexLine.itemCount - 1 : 1.0; | |
| 1184 | - spaceBetweenItem = (height - flexLine.mainSize) / denominator; | ||
| 1184 | + spaceBetweenItem = (height - insets.top - insets.bottom - flexLine.mainSize) / denominator; | ||
| 1185 | 1185 | childBottom = height - paddingBottom; | |
| 1186 | 1186 | break; | |
| 1187 | 1187 | default: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments