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

[BUG]: PowerCAT Creator Kit Command bar overflow issue while playing the app using a deeplink #447

Open
vivekmurli opened this issue Feb 7, 2024 · 5 comments
Assignees
Labels
bug Something isn't working Component: CommandBar 👋 needs author feedback Waiting on a response from the author

Comments

@vivekmurli
Copy link

vivekmurli commented Feb 7, 2024

We have a command bar that has 12 items , the command bar works as expected when we play the app in run and edit mode.
image

When we play the app using a deeplink , the ellipses (...) at the end disappears as below

image

Steps to reproduce the behavior:

  1. Add a command bar and add 12 items
  2. Create a deeplink and access the app via deeplink

We searched for a solution online to no avail.

Please let us know if this is a bug and if there is a workaround for this issue

AB#2231

@vivekmurli vivekmurli added bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet. labels Feb 7, 2024
@vivekmurli vivekmurli changed the title [BUG]: PowerCAT Creator Kit Command bar overflow issue while accessing via deeplink [BUG]: PowerCAT Creator Kit Command bar overflow issue while paying the app using a deeplink Feb 7, 2024
@vivekmurli vivekmurli changed the title [BUG]: PowerCAT Creator Kit Command bar overflow issue while paying the app using a deeplink [BUG]: PowerCAT Creator Kit Command bar overflow issue while playing the app using a deeplink Feb 7, 2024
@vivekmurli
Copy link
Author

@denise-msft

@denise-msft
Copy link
Member

@vivekmurli Are you using autowidth if the commandbar component in a layout container? Can you try using Parent.Width (or the appropriate relative sizing calculation based on its location in the tree) with autoWidth or stretch settings off? Are you using any logic otherwise that might be affecting the positioning/rendering of the component?

@denise-msft denise-msft added 👋 needs author feedback Waiting on a response from the author Component: CommandBar and removed ⚠️ needs triage Has not been triaged by the team yet. labels Feb 26, 2024
@vivekmurli
Copy link
Author

vivekmurli commented Feb 29, 2024

@denise-msft We are not using containers. Also we're using a formula to adjust the width and X of the component like this

Width: If(
IsBlank(deeplinkisnull),
1500,
500
)
X: ExpandMenuComponent.Width + 34

Didn't find any properties named autoWidth or stretch.

Also the component fails only when the app is played using a deeplink and works fine while playing or edit mode not sure why?

You should be able to reproduce the issue at your end by adding 13 items(3 words for each item) to the component and play the app via deeplink.

I feel that the command bar should render correctly irrespective of the number of items it holds.

Requesting you to look into it and let me know.

@vivekmurli vivekmurli removed their assignment Feb 29, 2024
@denise-msft
Copy link
Member

@vivekmurli Can you please explain why you are setting these the width based on a variable that seems related to the presence of a deep link? First of all, what is the size of your canvas dimensions? If the control reaches outside of the canvas dimensions, the commandbar will not display the overflow within the canvas. You must make sure that the width of the commandbar is less than that of the canvas.

When I increase the width of the commandbar the end is cut off and the rest is not visible outside of the screen. I haven't tried with a deeplink but it seems to be the behavior you described.
image

If you're trying to span the commandbar across the screen horizontally (assuming that's what you're doing where you have the value 1500), instead I would recommend using Parent.Width or App.ActiveScreen.Width. If that is your use case, can you please try that out and see if the overflow works?

So instead of the code you shared for width, try:
Width: If(
IsBlank(deeplinkisnull),
Parent.Width,
500
)

@vivekmurli
Copy link
Author

vivekmurli commented Mar 1, 2024

@denise-msft Thank you for helping us out with this , like I've explained before , the issue is with and only with the deeplink.
The app uses a resolution of
image

Like you can see the width of the command bar is less than the width of the canvas so essentially it shouldn't overflow.

We have configured the on start of the app to detect if the app is being played using a deeplink or not. If the app is played normally , the deeplinkisnull variable would return null and the width of the command bar would be set to 500 which is much less than the width of the canvas which is 1600.

So as per the logic , when the app is played using deeplink , the width is set to 500 then why does it overflow?. Also when you play the app without a deeplink , it works fine with its width being 1500.

To get to the bottom of the issue , and the original issue which is deep linking ,You may have to create a deeplink , use the logic above and I am sure you should be able to reproduce the issue the way we did. The crux here is the use of deeplink.

Please let me know if you need any other info from our end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Component: CommandBar 👋 needs author feedback Waiting on a response from the author
Projects
None yet
Development

No branches or pull requests

3 participants