Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i use haze with Jetpack compose Popup? #172

Closed
VahidGarousi opened this issue Apr 1, 2024 · 3 comments
Closed

Can i use haze with Jetpack compose Popup? #172

VahidGarousi opened this issue Apr 1, 2024 · 3 comments

Comments

@VahidGarousi
Copy link

VahidGarousi commented Apr 1, 2024

Information

  • Haze version: 0.6.2
  • Platform: Android

Expected Behavior

image

Actual Behavior

Steps to Reproduce the Problem

Popup(
            properties = PopupProperties(
                dismissOnBackPress = true,
                dismissOnClickOutside = true,
                focusable = true,
                excludeFromSystemGesture = false
            ),
            popupPositionProvider = remember(traderLegendInformation.boundsInRoot) {
                LegendPopupOffsetPositionProvider(
                    traderLegendInformation.boundsInRoot,
                    triangleHeightInPx = triangleHeightInPx
                )
            },
            onDismissRequest = remember { { shouldShowTooltip = null } }
        ) {
            TooltipShowMoreLarge(
                text = traderLegendInformation.legend.title
            )
        }
@chrisbanes
Copy link
Owner

Have you actually tried this before creating an issue? The fact that there's an "Actual Behavior" section which you ignored points to the fact that you didn't.

Clue: it already works.

@chrisbanes chrisbanes closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
@VahidGarousi
Copy link
Author

Have you actually tried this before creating an issue? The fact that there's an "Actual Behavior" section which you ignored points to the fact that you didn't.

Clue: it already works.

Yes, I attempted to implement the provided code, but unfortunately, I didn't observe any noticeable changes in behavior. I'll revisit the issue tomorrow and provide an update accordingly. Thank you for your patience.

@chrisbanes
Copy link
Owner

Have a look at the DialogSample. Swap Dialog to Popup and it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants