about summary refs log tree commit diff
path: root/src/components/hooks/useHeaderOffset.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/hooks/useHeaderOffset.ts')
-rw-r--r--src/components/hooks/useHeaderOffset.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/hooks/useHeaderOffset.ts b/src/components/hooks/useHeaderOffset.ts
index c9987df77..2d18fb99b 100644
--- a/src/components/hooks/useHeaderOffset.ts
+++ b/src/components/hooks/useHeaderOffset.ts
@@ -12,5 +12,5 @@ export function useHeaderOffset() {
   const tabBarPad = 10 + 10 + 3 // padding + border
   const normalLineHeight = 20 // matches tab bar
   const tabBarText = normalLineHeight * fontScale
-  return navBarHeight + tabBarPad + tabBarText
+  return navBarHeight + tabBarPad + tabBarText - 4 // for some reason, this calculation is wrong by 4 pixels, which we adjust
 }