sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Extensions: Application Customizer weird behaviour with header color and positioning

Open estruyf opened this issue 9 years ago • 4 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Observed Behavior

I was testing out the application customizer sample with the header and footer. I have packaged the solution and uploaded it to the app catalog. Once deployed on a site, I noticed the following behaviors:

One modern site pages On modern site pages only the header is loaded. Not the footer. screenshot 2017-06-21 16 30 53

When you check the browser console, I see the following message: screenshot 2017-06-21 16 31 01

Two questions about this:

  1. Will all pages get all the placeholders?
  2. The header should have been green instead of blue. Like when I would open a document library: screenshot 2017-06-21 16 18 05

Recycle bin Once I added the app customizer to the site and went to the recycle bin, I see the following (this happens only 1/3 times I refresh the page):

screenshot 2017-06-21 16 31 26

Steps to Reproduce

Following the getting started documentation about extensions and publish it to your environment.

estruyf avatar Jun 21 '17 14:06 estruyf

Hello @estruyf . I can answer some of the questions: 1 - No, all pages won't necessarily have all the placeholders. For example in the future I could see a placeholder like "BelowLeftNav" and a page that didn't have left navigation. In that case, the BelowLeftNav placeholder wouldn't return. Your code should be robust. One current gap that we are working on is how to deal with the fact that the available placeholders could change when doing an inner navigate. Ie, Page1 has no left nav (it's a homepage say), but page 2 does (it's a detail page). 2 - Sounds like a bug where the pages application isn't getting the right theme data. @srideshpande - can you log that one? 3 - For the recycle bin, is the issue that occasionally the placeholder doesn't show up when you go to the recycle bin? If that is the case, can you look at the debug console and see if there is anything there that might indicate what's going on?

patmill avatar Jun 23 '17 18:06 patmill

Thanks @patmill for the info.

  1. Good to know, but as the sample now contains a header and footer, maybe it should be better to point it out or make the sample code more future-proof.
  2. OK
  3. Maybe the screenshot is not so good to see what is happening. It is about the whitespace above the suite bar. Apparently, it is coming from the #SPPageChrome element.
screenshot 2017-06-24 09 54 05

I did some more investigation and it seems that sometimes the code runs before the placeholders are available on the page. Here is the error message I get when I see this kind of behavior:

screenshot 2017-06-24 09 56 22

You can see in the screenshot that no placeholders are available. So the code gets binded / executed too early it seems.

estruyf avatar Jun 24 '17 08:06 estruyf

We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”

spdevdocs avatar Apr 29 '18 12:04 spdevdocs

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 29 '20 06:01 msft-github-bot