Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set progressbar location to the top of container instead of the page #212

Closed
JesseZomer opened this issue Oct 2, 2018 · 3 comments
Closed
Labels

Comments

@JesseZomer
Copy link

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] question

OS and Version?

Windows 10

Versions

latest

Repro steps

The log given by the failure

Desired functionality

I would like te see a feature where you can set the progressbar to the top of your container instead of the page. At the moment I'm using https://github.com/aitboudad/ngx-loading-bar because this has a [fixed]="false" feature, where the progressbar gets set to top of the component you place it in.

Mention any other details that might be useful

@MurhafSousli
Copy link
Owner

::ng-deep {
  .parent {
    position: relative;
    ng-progress {
      position: static;
      .ng-progress-bar {
         position: absolute;
      }
    }
  }
}

check this stackblitz

dup of #73 #129

I will add an option for this

@JesseZomer
Copy link
Author

This seems to work, thank you!

I did have to set meteor to false, or else I would have this weird sort of glow stick coming out of the end.
A built in feature would be nice, so we can keep the ::ng-deep css out of the components.

@MurhafSousli
Copy link
Owner

The meteor should work if you add overflow: hidden; on parent element, just like in the stackblitz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants