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.

Angular material page left some gap between browser ends and the content

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

image Here, there is no gap in between the ends of browser and the page.

What is the current behavior?

image Here, in my localhost:4200, there is a humiliating gap (margin) in between the ends of browser and the material toolbar.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Version: 4.2.5 OS: Windows 10 Anniversary Update Angular Material Version: 2.0.0-beta.7 Chrome Version: 59.0.3071.115

Is there anything else we should know?

Node: v8.1.2 npm: v5.0.3

Issue Analytics

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

github_iconTop GitHub Comments

18reactions
EdricChan03commented, Jul 2, 2017

Did you put md-toolbar in md-sidenav-container? Also, you have to add a fullscreen attribute to md-sidenav-container. As so:

<md-sidenav-container fullscreen>
    <md-toolbar>Content</md-toolbar>
</md-sidenav-container>

Alternatively, add the following CSS:

body {
    margin: 0;
}
0reactions
angular-automatic-lock-bot[bot]commented, Sep 10, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unwanted White Space at the bottom of Web Angular ...
I am getting white space at the bottom of a page when displayed in the browser - and - I am not seeing...
Read more >
Sidenav - Angular Material
Measures the scroll offset relative to the specified edge of the viewport. This method can be used instead of directly checking scrollLeft or...
Read more >
column-gap - CSS: Cascading Style Sheets - MDN Web Docs
Initially a part of Multi-column Layout, the definition of column-gap has been broadened to include multiple layout methods. Now specified in ...
Read more >
3 ways to display two divs side by side (float, flexbox, CSS grid)
You can use the grid-gap (or gap in newer browsers) to automatically add space in your grid template. We've set grid-gap to 20px,...
Read more >
Content Jumping (and How To Avoid It) | CSS-Tricks
To fix it, I used the browser's DevTools to measure the height of the resulting content and hardcoded it as a min-height for...
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