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

Problem with vertical margins #196

Open
bratva opened this issue Apr 8, 2024 · 1 comment
Open

Problem with vertical margins #196

bratva opened this issue Apr 8, 2024 · 1 comment

Comments

@bratva
Copy link
Contributor

bratva commented Apr 8, 2024

The position of elements jumps when switching views (DynamicField and DynamicView). Namely, the vertical space between elements. Reproduced on the Editor page, with this specification:

{
  "defaultValue": {
    "features": {
      "backend": {
        "allow_write_pre_statistics": true
      },
      "front": {
        "check_kwargs_identity_before_saving": true
      }
    }
  },
  "type": "object",
  "properties": {
    "features": {
      "type": "object",
      "properties": {
        "backend": {
          "type": "object",
          "properties": {
            "allow_write_pre_statistics": {
              "type": "boolean",
              "viewSpec": {
                "type": "base",
                "layout": "row",
                "layoutTitle": "allow_write_pre_statistics"
              }
            },
            "chaos_tags_enabled": {
              "type": "boolean",
              "viewSpec": {
                "type": "base",
                "layout": "row",
                "layoutTitle": "chaos_tags_enabled"
              }
            }
          },
          "viewSpec": {
            "type": "base",
            "layout": "accordeon",
            "layoutOpen": false,
            "layoutTitle": "backend"
          },
          "required": true
        },
        "front": {
          "type": "object",
          "properties": {
            "check_kwargs_identity_before_saving": {
              "type": "boolean",
              "viewSpec": {
                "type": "base",
                "layout": "row",
                "layoutTitle": "check_kwargs_identity_before_saving"
              }
            }
          },
          "viewSpec": {
            "type": "base",
            "layout": "accordeon",
            "layoutOpen": false,
            "layoutTitle": "front"
          },
          "required": true
        }
      },
      "viewSpec": {
        "type": "base",
        "layout": "accordeon",
        "layoutOpen": true,
        "layoutTitle": "features"
      }
    }
  },
  "viewSpec": {
    "type": "base",
    "layout": "transparent",
    "layoutOpen": true
  }
}

diff

@bocembocem
Copy link
Collaborator

Hi! 👋
Thank you, we will deal with it soon

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

2 participants