material icon indicating copy to clipboard operation
material copied to clipboard

Subheader positioning and sizing issue

Open krassx opened this issue 11 years ago • 5 comments

Take a look at this screen shot:

https://www.dropbox.com/s/kfkp8uc3ptnefax/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202015-03-28%2001.15.35.png?dl=0

It was made on official website. I just changed background from white to green and got all those gaps that look really weird. In my project I have tiled images grouped by some criteria that's why I do not have white background, but I do have subheaders in that list. And when I scroll the list those gaps are all visible and annoying. Is there any way to fix this? Really don't want to use "hacks" to fix that just for myself. I am sure there is more natural way to make it in the framework itself. Thanks in advance.

krassx avatar Mar 27 '15 19:03 krassx

Sounds like an issue with $mdSticky.

marcysutton avatar Mar 27 '15 19:03 marcysutton

I think this was corrected here: https://github.com/angular/material/issues/708, but it wasn't merged, I suppose.

elrabelo avatar Apr 22 '15 18:04 elrabelo

Checked the state of this issue with 0.9.0 and it still reproduces easily:

http://gyazo.com/0c037841518bcc12a9e2c0a834b8f88b

krassx avatar May 06 '15 13:05 krassx

Please provide a CodePen or Plunkr that demonstrates this issue. Here are some starter demo templates that you can use/fork:

  • CodePen template: http://codepen.io/team/AngularMaterial/pen/BNYppz
  • Plunkr template: http://plnkr.co/edit/yP0gB9iTacIQb48thud8?p=preview.

ThomasBurleson avatar Sep 04 '15 17:09 ThomasBurleson

@marcysutton @ThomasBurleson @elrabelo

Looks like 2 issues

  1. A gap between header 1 & 2 shows the background color, looks like the shadow of the top most header should be turned off when the second header bumps into it Codepen
  2. He is also ( I think ) having the issue with pr #1151 which you can see with parent left/right padding, which I also added into this pen

Ugly colors aside it's even noticeable with default white background, just more so with any other hue

Todd-Werelius avatar Nov 20 '15 09:11 Todd-Werelius