mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +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 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
|
||||
if (mAlign == ITEM_ALIGN_END) {
|
||||
x += directionLine.x == 0 ? (maxItemSize.x - size.x) : 0;
|
||||
|
|
Loading…
Reference in a new issue