question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppBar position="fixed" shouldn't require a shim

See original GitHub issue

In order to make the AppBar (position=static) work in the least surprising way a shim is required:

<AppBar position="static">...</AppBar>
<div style={{height: 64}}>Shim - Not visible</div>
<List>...</List>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
oliviertassinaricommented, Mar 20, 2018

@StokeMasterJack I believed you meant fixed in the example.

There are different solutions to this problem:

  • you can use the sticky position (non supported by IE 11):
<AppBar position="sticky" />
  • you can use a second static app bar as a shim:
<AppBar position="fixed" />
<Toolbar />
// The body...

P.S. the height of the AppBar is dynamic, it changes with the screen width.

5reactions
aprilmintacpinedacommented, Jan 11, 2020

Isn’t there any way we can get the height current height of the topbar on our styles?

This is what I want to achieve

export default theme => {
  return {
    container: {
      height: `calc(100vh - ${theme.topbar.height})`
    }
  };
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Content beneath fixed AppBar - Stack Overflow
The size of my AppBar changes on window resize to-and-from mobile(960px). The theme.mixins.toolbar solution returns a static theme height, which ...
Read more >
Error: Unable to open shim database - MSDN - Microsoft
What's going on is that there is a "shim database" in the registry that the runtime reads ... NET Framework is broken shouldn't...
Read more >
Issues closed in the 2.x development cycle
Just one bugfix: fixed bad CRCRLF line-endings in notebooks on Windows. Pull Requests (1):. PR #6911: don't use text mode in mkstemp. Issues...
Read more >
Replace Toolbar BackboneJS usage with VanillaJS equivalent
This issue's scope to to replace Toolbar's use of Backbone with ... We shouldn't be using weights at all, here adding the shim...
Read more >
Hooks API Reference - React
Note that React may still need to render that specific component again before bailing out. That shouldn't be a concern because React won't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found