mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
fix(ui): rails count the obstacles beside those across the middle, and read them as before when neither side has room
Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
feedd88614
commit
98a100ed7e
6 files changed
+146
-50
No files matched your search
@@ -1010,7 +1010,7 @@ test('an expanded Cockpit left panel stays above Contact, HUD, and attribution',
|
||||
assert.ok(leftLayout, 'left accordion layout pass is missing');
|
||||
assert.match(
|
||||
leftLayout,
|
||||
/\} else \{\s*\n\s*bottomObstacles\.push\(\{ top: rect\.top \}\);\s*\n\s*\}\s*\n\s*\}/,
|
||||
/rect\.top >= baseTop\) \{\s*\n\s*bottomObstacles\.push\(\{ top: rect\.top \}\);/,
|
||||
'every rendered lower-lane obstacle must constrain the panel corridor',
|
||||
);
|
||||
assert.match(
|
||||
|
||||
Reference in new issue
Block a user