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

Arrow not visible when content scrollable #67

Open
oyshan opened this issue Jan 12, 2018 · 1 comment
Open

Arrow not visible when content scrollable #67

oyshan opened this issue Jan 12, 2018 · 1 comment
Labels

Comments

@oyshan
Copy link

oyshan commented Jan 12, 2018

My tooltip content is some time so big I'd like to make the tooltip content scrollable. But by making the content scrollable via the style prop, the arrow disappears. See my render() method:

render(){
	const style = {
		style: {
			maxHeight: '200px',
			maxWidth: '200px',
			overflowY: 'auto'
		},
		arrowStyle: {
			color: 'rgba(0,0,0,1)',
		}
	}

	return (
		<span>
			<i
				id={this.parentId}
				style={{ cursor: 'pointer' }}
				className="mdi mdi-information-outline"
				onMouseEnter={this.showTooltip}
				onMouseLeave={this.hideTooltip}
			/>
			<Tooltip
				active={this.state.isTooltipActive}
				parent={'#'+this.parentId}
				arrow="top"//{this.props.arrow}
				position={this.props.position}
				tooltipTimeout={this.props.tooltipTimeout}
				style={style}
			>
				<div>
					<ReactMarkdown source={this.state.markdown} />
				</div>
			</Tooltip >
		</span>
	)

This will cause the tooltip arrow to disappear. Is there any way of making the tooltip content scrollable AND the tooltip arrow visible?

@Redmega
Copy link
Collaborator

Redmega commented Jan 26, 2018

Hi, sorry for the delay. I'll look into it over the weekend

@Redmega Redmega added the bug label Mar 29, 2018
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