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.

Showing bar for custom width fails

See original GitHub issue

First of all, thanks for the plugin it works well, though I am finding some issues while it displays with added margin, see the screenshot below

2017-06-15_16-05-10

What is happening is, I have a top nav bar in which I have added the Loader component which is supposed to show the loader from left 60px of the top bar, for this I have added marginLeft:60px which works well it starts leaving 60px from left, but when it finishes it crosses the header tag and goes beyond limit, see the screenshot which cause scroll bars to come up in the page.

Below is my code of Loader

const Loader = () => {
  return (
    <header style={{height:'3px',marginTop:'15px',marginLeft:'60px'}}>
      <LoadingBar style={{ backgroundColor: 'red', height: '3px', zIndex:9999, width:'100%', paddingRight:'60px' }} showFastActions updateTime={500} />
    </header>
  );
};

I tried to manipulate the width to some random value from 100%, it did work the progress bar was limited to that, but this is not way it should work, the progress bar should never go beyond header…

Any solution?

Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iphoniccommented, Jun 16, 2017

Update

I have added position css to both parent and child which seems to fix the problem but partially, see me code below

const Loader = () => {
  return (
    <header style={{height:'3px',marginTop:'13px',marginLeft:'60px',position:'relative'}}>
      <LoadingBar style={{ backgroundColor: '#4da1ff', height: '3px',position:'absolute', zIndex:9999, width:'100%'}} showFastActions updateTime={500} />
    </header>
  );
};

But it created another problem the progress bar doesn’t complete 100%, see below how it looks

2017-06-15_16-31-41

I have found that the progress bar doesn’t go up to transform to 1, see the element inspection below,

2017-06-16_11-23-41

Thanks.

0reactions
mironovcommented, Jun 16, 2017

@iphonic yes, exactly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't change Width of Custom ErrorBars - excel - Stack Overflow
I think the problem is with .HasErrorBars = True which already creates an error bar automatically if one is not present, while the...
Read more >
3.6 Adjusting Bar Width and Spacing - R Graphics Cookbook
You want to adjust the width of bars and the spacing between them. 3.6.2 Solution. To make the bars narrower or wider, set...
Read more >
How to add error bars in Excel: standard and custom - Ablebits
Click anywhere in your graph. Click the Chart Elements button to the right of the chart. Click the arrow next to Error Bars...
Read more >
Maintain Bar Thickness(Width) in Power BI - YouTube
During this entire session, we will learn how we can manually set the Width of the bar for the Power BI Stacked bar...
Read more >
Add, change, or remove error bars in a chart - Microsoft Support
Error bars in charts you create can help you see margins of error and standard deviations at a glance. They can be shown...
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