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.

Is there a way to make it's position relative?

See original GitHub issue

I want to use the search bar inside a view this way:

<SearchBar ref={(ref) => this.searchBar = ref}
	data={this.props.data}
	handleResults={(results) => this.setState({results})}
	showOnLoad
/>
<Results />

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

1reaction
jneuendorfcommented, Jan 3, 2018

That’s true I guess. But I was working on the ‘baked in’ version at work. Currently, it’s still kinda quickly and hard-coded and I don’t have that much more time to make it more generic in order to open a PR. But I will once I got to it 😉

Update (2018/01/03)

It looks like I won’t work on the project I am using the search bar for in the next time. Thus you guys are welcome to fork my fork 😉

0reactions
dvilukcommented, Nov 6, 2017

more easy if you let us modify the style from props

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Layout - The position Property - W3Schools
The position property specifies the type of positioning method used for an element. There are five different position values: static; relative; fixed; absolute ......
Read more >
CSS Positioning – Position Absolute and Relative Example
position: relative works the same way as position: static; , but it lets you change an element's position. But just writing this CSS...
Read more >
position - CSS: Cascading Style Sheets - MDN Web Docs
The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final ......
Read more >
Absolute, Relative, Fixed Positioning: How Do They Differ?
The trade-off (and most important thing to remember) about absolute positioning is that these elements are removed from the flow of elements on ......
Read more >
Practical Guide to Using CSS Position Relative & Absolute
Relative Positioning. When you make an HTML element position: relative , it'll remain “in the flow” of the layout but you can move ......
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