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

Is it possible to specify someone panel to take the "remaining space"? #351

Open
chris1299 opened this issue Nov 14, 2022 · 0 comments
Open

Comments

@chris1299
Copy link

chris1299 commented Nov 14, 2022

Describe the bug

see the Screenshots

var json = {
        global: {tabEnableClose:false},
        layout: {
            "type": "row",
            "weight": 100,
            "children": [
                {
                    "type": "tabset",
                    "width": 500,
                    "selected": 0,
                    "children": [
                        {
                            "type": "tab",
                            "name": "One",
                            "component": "text"
                        }
                    ]
                },
                {
                    "type": "tabset",
                    "weight": 25,
                    "selected": 0,
                    "children": [
                        {
                            "type": "tab",
                            "name": "Two",
                            "component": "text"
                        }
                    ]
                },
                   {
                    "type": "tabset",
                    "weight": 25,
                    "selected": 0,
                    "children": [
                        {
                            "type": "tab",
                            "name": "Three",
                            "component": "text"
                        }
                    ]
                }
            ]
        }
    };

question:
Is it possible to specify the Panel two take the "remaining space"?

Your Example Website or App

https://jsfiddle.net/chris1299/qjzxrs7p/16/

Steps to Reproduce the Bug or Issue

  1. go the link above
  2. move the Panel three to the bottom of panel one

Expected behavior

I expected to keep the original width of Panel one and the Panel two take the "remaining space" after moving the Panel Three

Operating System

Windows

Browser Type?

Chrome

Browser Version

Latest

Screenshots or Videos

before moveNode
image
after moveNode
image

Additional context

No response

@chris1299 chris1299 changed the title how to keep the width of toNode after moveNode Is it possible to have a panel take the "remaining space"? Nov 14, 2022
@chris1299 chris1299 changed the title Is it possible to have a panel take the "remaining space"? Is it possible to specify someone panel to take the "remaining space"? Nov 14, 2022
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