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

Grid Fieldtype keeps displaying as a Set (not Table) in other sections than `main` #2003

Closed
efoken opened this Issue Jun 5, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@efoken

efoken commented Jun 5, 2018

Describe the bug
The Grid fieldtype always displays as a "Set" if used in other sections than the main section. Regardless of which Display Mode I select in the Fieldtype Extras – "Table" or "Set", it keeps displaying as "Set".

To Reproduce

  1. Create a fieldset with two sections main and options.
  2. Create some fields
  3. Create a Grid fieldtype in the options section with Display Mode "Table"
  4. Create a page with your fieldset and go to options Tab

Expected behavior
The selected Display Mode should be respected in my options section.

Environment details (please complete the following information):

  • Statamic Version 2.9.6
  • Fresh Install or Upgrade: Updated
  • OS: macOS
  • Browser: Chrome
  • Web Server: Valet
  • PHP Version: 7.2.6

Screenshots
bildschirmfoto 2018-06-05 um 11 18 18

@jasonvarga

This comment has been minimized.

Member

jasonvarga commented Jun 5, 2018

It turns into the stacked mode when the parent element's width is narrow enough regardless of what mode you select.
Although, your screenshot shows that its wider than I would have thought would trigger the change.

Does it change if you resize your browser width?

@efoken

This comment has been minimized.

efoken commented Jun 5, 2018

My browser windows is exactly 1280px wide. And when I drag the metadata over to the main section – it works as expected.

But you're right, if I change my window size, to be just 1px smaller or larger, it swaps to Table display mode. But it does not swap back.

@jasonvarga

This comment has been minimized.

Member

jasonvarga commented Jun 5, 2018

Cool, thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment