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

Popup with grid + map doesn't layout properly #1660

Closed
kevflynn opened this issue May 7, 2017 · 0 comments
Closed

Popup with grid + map doesn't layout properly #1660

kevflynn opened this issue May 7, 2017 · 0 comments

Comments

@kevflynn
Copy link

kevflynn commented May 7, 2017

When creating a popup and adding a grid to the popup, I want to create 3 column grid that pops up from the bottom of the trigger button. The odd thing is - whenever I use .map to take an array and create an element for each row (i.e. Grid.Row), the Grid properties are off and so is the layout. Very easy to reproduce. Just make sure you use .map to layout the rows of the Grid.

What happens: Popup content is huge and off the screen. Doesn't matter if I use flowing, wide or normal layout (it's ignored as is the Popup position). It seems to use override with center positioning and makes the grid row content super wide, which makes much of the content off of the screen.

Expected: The same behavior as if I manually create multiple Grid.Row elements where the Grid properties are adhered to.

<Popup trigger={<Button>Show flowing popup</Button>} position="bottom left" flowing on="click" > <Grid centered divided columns={3}> {anyArray.map((df) => { return ( <Grid.Row> <Grid.Column textAlign='center'> <Header as='h4'>Basic Plan</Header> <p><b>2</b> projects, $10 a month</p> <Button>Choose</Button> </Grid.Column> <Grid.Column textAlign='center'> <Header as='h4'>Business Plan</Header> <p><b>5</b> projects, $20 a month</p> <Button>Choose</Button> </Grid.Column> <Grid.Column textAlign='center'> <Header as='h4'>Premium Plan</Header> <p><b>8</b> projects, $25 a month</p> <Button>Choose</Button> </Grid.Column> </Grid.Row> ); })} </Grid> </Popup>

@kevflynn kevflynn closed this as completed May 8, 2017
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

1 participant