mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
bugfix, simplification
Signed-off-by: Sophia Hadash <sophiahadash@gmail.com>
This commit is contained in:
parent
1c93ca2c07
commit
8fd05fcd77
|
@ -194,7 +194,8 @@ void FlexboxComponent::computeLayout()
|
|||
|
||||
// Apply right-align
|
||||
if (mAlignment == "right") {
|
||||
unsigned int n = mItemsPerLine - (--i + 1) % std::max(1, static_cast<int>(mItemsPerLine));
|
||||
unsigned int m = i % std::max(1, static_cast<int>(mItemsPerLine));
|
||||
unsigned int n = m > 0 ? mItemsPerLine - m : m;
|
||||
i = 0;
|
||||
unsigned int line = 1;
|
||||
for (auto& image : mImages) {
|
||||
|
|
Loading…
Reference in a new issue