Accessibility mode tweaks

Summary:
The run through indexes could be cut off when they were elements that touched the left edge of the screen.

If label was complete obscured when it was on the top left

Also index 0 was missing

changelog: UIDebugger: improvements to iOS Accessibility mode

Reviewed By: zats

Differential Revision: D49704398

fbshipit-source-id: cb069857a9175f2c1a8157f41fe6d83fb96f795d
This commit is contained in:
Luke De Feo
2023-09-29 09:03:38 -07:00
committed by Facebook GitHub Bot
parent 62c2814c88
commit a748a1c2a2

View File

@@ -252,6 +252,7 @@ export const Visualization2D: React.FC<
node={focusState.focusedRoot} node={focusState.focusedRoot}
onSelectNode={onSelectNode} onSelectNode={onSelectNode}
traversalMode={traversalMode} traversalMode={traversalMode}
runThroughIndex={0}
/> />
</div> </div>
</div> </div>
@@ -356,8 +357,6 @@ function Visualization2DNode({
<div <div
style={{ style={{
position: 'relative', position: 'relative',
left: '-10px',
top: '-7px',
width: '20px', width: '20px',
height: '14px', height: '14px',
fontFamily: 'monospace', fontFamily: 'monospace',