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

width is not working #11

Open
ShivPandey opened this issue Jul 16, 2019 · 1 comment
Open

width is not working #11

ShivPandey opened this issue Jul 16, 2019 · 1 comment

Comments

@ShivPandey
Copy link

we will not able to define with and there is also a suggestion to give default 100% to inherit from parent

@windcloak
Copy link

I was able to make width inherit from parent by making the svg width the same width as the ngx-loading-content width. The actual number doesn't matter, but they must be the same number (300 in my case)

  <ngx-content-loading
  [speed]="'1500ms'"
  [width]="300"
  [height]="300"
  [primaryColor]="'#eee'"
  [secondaryColor]="'#fff'">
	<svg:g ngx-rect width="300" height="10" y="10" x="0" rx="5" ry="5"></svg:g>
	<svg:g ngx-rect width="300" height="10" y="40" x="0" rx="5" ry="5"></svg:g>
	<svg:g ngx-rect width="300" height="10" y="70" x="0" rx="5" ry="5"></svg:g>
</ngx-content-loading>

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

No branches or pull requests

2 participants