web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas Apps changing S...
Power Apps
Unanswered

Canvas Apps changing Screen Name causes some Containers to disappear (that use varStyle.topBarHeight

(1) ShareShare
ReportReport
Posted on by 292

Synopsis: When I change the Screen Name (screen generated by Power Apps, "Start from Data"), some of my containers disappear -- their Height values (in property panel) are 0 despite Height property being defined as varStyle.topBarHeight (=52).

(I do have a workaround for this:

        Change the Screen Name as intended,  save and exit, reopen and Voila! All is well -- the missing components are back.   

        But this sure seems like a bug.)

 

I have "Modern controls" turned on.

I started a Canvas App "from data" so it basically created the whole interface for me.

Including a Screen name and New Record button on the left, and delete/edit toolbar on the top.

All is well at first:

  • Height for those top containers is set to varStyle.topBarHeight (a system-controlled value), which is set to 52.
  • Container height shows as 52

MelissaReed_3-1704978515466.png

 

Then I changed the Screen Name from Screen1 to Participants.

When I did those three top containers disappeared from view:  Participants, New Item button, and the Toolbar.   

  • The container's Height displays as 0 (below, on right panel), even though the property (below, upper) shows varStyle.typeBarHeight which is still valued at 52. 

MelissaReed_4-1704978677721.png

 

Changing the name to Screen1 didn't fix it.  I had to do an Undo.  

 

I think the root of the problem is varStyle variable.  It is a context variable. 

When the screen is initially created, a "set" of values is created under the name Screen1  (see the {fx} panel / Context Variables)

 

When the screen name is changed (Participant Maint),  

  • it correctly changes the Context variable name in the {fx} panel from "Screen1" to "Participant Maint"
  • But I think the container's Height property is still referencing Screen1.varstyle.topBarHeight which no longer exists, causing it to render as 0.

My workaround is to make the Screen Name change, grit my teeth, Save and  Exit, and re-open the app.

When I do, everything is as it should be.  

 

Wondering if anyone else has encountered this and has a better solution or can authoritatively say it's a bug (and they're looking into it....)

 

 

 

Categories:
I have the same question (0)
  • MelissaReed Profile Picture
    292 on at

    Opening bid for a fix is a workaround:

            Change the screen name

            Save and Exit

            Re-open/edit the App

    Thumbs-up if this worked for you or if you think this is the best/only solution.

     

     

  • JD-05021943-0 Profile Picture
    2 on at
    Thanks for providing this detail! 

    I had the exact same issue, and instead of trying to figure it out I closed before saving and reloaded. 

    Good to know that if I change the name, I can save and reload and it'll correct. 

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard