Fixed issue with first line element gap handling. (#1408)
Summary: If the first element of a line is not contributing (e.g. position absolute), an additional gap will be added to the line, because the first gap element of the line is never identified (wrong start index). Fix: raise the index of the first line element until we find an element that is contributing to the line. Pull Request resolved: https://github.com/facebook/yoga/pull/1408 Reviewed By: yungsters Differential Revision: D49722065 Pulled By: NickGerleman fbshipit-source-id: 1068cb0b11ae4b04ec8d063e70540cce06181d5a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b03a821884
commit
07cabca526
@@ -34,6 +34,13 @@
|
||||
<div style="width: 20px; height: 20px"></div>
|
||||
</div>
|
||||
|
||||
<div id="column_gap_start_index" style="flex-direction: row; flex-wrap: wrap; width: 80px; column-gap: 10px; row-gap: 20px;">
|
||||
<div style="width: 20px; height: 20px; position: absolute"></div>
|
||||
<div style="width: 20px; height: 20px"></div>
|
||||
<div style="width: 20px; height: 20px"></div>
|
||||
<div style="width: 20px; height: 20px"></div>
|
||||
</div>
|
||||
|
||||
<div id="column_gap_justify_flex_start" style="flex-direction: row; justify-content: flex-start; width: 100px; height: 100px; column-gap: 10px;">
|
||||
<div style="width: 20px;"></div>
|
||||
<div style="width: 20px;"></div>
|
||||
|
Reference in New Issue
Block a user