Skip to content

Commit

Permalink
Merge pull request #40545 from codinggeek2023/main
Browse files Browse the repository at this point in the history
[CP Staging] Fix: "Let it go" copy is not centered when dragging and dropping a file to Scan RHP
  • Loading branch information
MonilBhavsar authored Apr 22, 2024
2 parents 6fa2d06 + 7aa7b2e commit c395466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepScan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function IOURequestStepScan({

const desktopUploadView = () => (
<>
<View onLayout={({nativeEvent}) => setReceiptImageTopPosition(PixelRatio.roundToNearestPixel(nativeEvent.layout.y))}>
<View onLayout={({nativeEvent}) => setReceiptImageTopPosition(PixelRatio.roundToNearestPixel((nativeEvent.layout as DOMRect).top))}>
<ReceiptUpload
width={CONST.RECEIPT.ICON_SIZE}
height={CONST.RECEIPT.ICON_SIZE}
Expand Down

0 comments on commit c395466

Please sign in to comment.