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

Modern page top placeholder renders on the page itself when viewed in SharePoint mobile app and disappears when scroll

Open BrianBusby opened this issue 8 years ago • 4 comments

Category

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

Expected or Desired Behavior

I expected content in the top page placeholder to appear at the top of the screen in the mobile app and not be scrollable.

Observed Behavior

The content appears inside the page and disappears when scrolling.

Steps to Reproduce

if (!this._topPlaceholder) {
  this._topPlaceholder = this.context.placeholderProvider.tryCreateContent(
      PlaceholderName.Top,
      { onDispose: this._onDispose });
}
if (this._topPlaceholder.domElement) {
  this._topPlaceholder.domElement.innerHTML = `
  <div id="GlobalNavDiv">THIS WILL BE GLOBAL NAV
  </div>`;  
}

Here is the rendered content on my laptop

globalnav

Here is the rendered content on my iPhone

iphone

Are there any plans to address this? It removes our ability to create widgets that live at the top of a site when viewed in mobile.

Thanks

BrianBusby avatar Oct 24 '18 20:10 BrianBusby

For us the top placeholder does not render at all in the mobile app, neither do custom web parts.

AndersGEriksson avatar Nov 02 '18 12:11 AndersGEriksson

We also found this frustrating. It results in our global navigation displaying below the site specific (quick launch) navigation.

rmillener avatar Nov 12 '18 11:11 rmillener

Sorry for the super long delay. Thank you for your feedback - we will consider this for future refinements in the mobile app.

patmill avatar Sep 07 '21 19:09 patmill

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

ghost avatar Sep 15 '21 00:09 ghost