Skip to content

Commit

Permalink
fix: exclude StatusBar height from useWindowDimensions if `Status…
Browse files Browse the repository at this point in the history
…Bar` is not translucent
  • Loading branch information
kirillzyusko committed Feb 26, 2025
1 parent b8a4de9 commit b414cb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class WindowDimensionListener(
val newDimensions =
Dimensions(
content.width.toFloat().dp,
content.height.toFloat().dp + content.marginTop.toFloat().dp,
content.height.toFloat().dp,
)

if (newDimensions != lastDispatchedDimensions) {
Expand Down

0 comments on commit b414cb1

Please sign in to comment.