mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
remove old code
This commit is contained in:
parent
33f0b01c55
commit
f37d915653
|
|
@ -121,14 +121,6 @@ void FlexboxComponent::computeLayout()
|
||||||
float x = anchorX - anchorOriginX * size.x;
|
float x = anchorX - anchorOriginX * size.x;
|
||||||
float y = anchorY - anchorOriginY * size.y;
|
float y = anchorY - anchorOriginY * size.y;
|
||||||
|
|
||||||
// Apply item margin.
|
|
||||||
/*if ((mDirection == "row" && i % std::max(1, (int) mItemsPerLine) != 0) ||
|
|
||||||
(mDirection == "column" && i >= (int) mItemsPerLine))
|
|
||||||
x += mItemMargin.x * (directionLine.x >= 0.0f ? 1.0f : -1.0f);
|
|
||||||
if ((mDirection == "column" && i % std::max(1, (int) mItemsPerLine) != 0) ||
|
|
||||||
(mDirection == "row" && i >= (int) mItemsPerLine))
|
|
||||||
y += mItemMargin.y * (directionLine.y >= 0.0f ? 1.0f : -1.0f);*/
|
|
||||||
|
|
||||||
// Apply alignment
|
// Apply alignment
|
||||||
if (mAlign == ITEM_ALIGN_END) {
|
if (mAlign == ITEM_ALIGN_END) {
|
||||||
x += directionLine.x == 0 ? (maxItemSize.x - size.x) : 0;
|
x += directionLine.x == 0 ? (maxItemSize.x - size.x) : 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue