Skip to content

Commit

Permalink
Merge pull request #633 from skydoves/fix/compose-positioning
Browse files Browse the repository at this point in the history
Remove initializing global positioning and offsets
  • Loading branch information
skydoves authored May 7, 2024
2 parents 56c0be0 + f4167d8 commit 4282155
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import androidx.lifecycle.setViewTreeViewModelStoreOwner
import androidx.savedstate.findViewTreeSavedStateRegistryOwner
import androidx.savedstate.setViewTreeSavedStateRegistryOwner
import com.skydoves.balloon.Balloon
import com.skydoves.balloon.BalloonAlign
import java.lang.Integer.max
import java.util.UUID

Expand Down Expand Up @@ -158,13 +157,6 @@ public fun Balloon(

Box(
modifier = modifier
.onGloballyPositioned {
balloonComposeView.updateAlign(
align = balloonComposeView.balloon.currentAlign ?: BalloonAlign.BOTTOM,
xOff = 0,
yOff = 0,
)
}
.onSizeChanged {
anchorView.updateLayoutParams {
width = it.width
Expand Down

0 comments on commit 4282155

Please sign in to comment.