Skip to content

Problem with vertical margins #196

Description

@bratva

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions