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

More control over tab positioning / GUI element creation #68

Open
akapfham opened this issue Oct 11, 2022 · 6 comments
Open

More control over tab positioning / GUI element creation #68

akapfham opened this issue Oct 11, 2022 · 6 comments

Comments

@akapfham
Copy link

Lets say you have a panel which is docked "bottom". Then you drag another panel on top of the first one and dock it "filled". Then the two visible tabs are at the bottom edge of the panels. It would be great if this can be customized (for example put the tabs on the top border). It would be great if there was an option that all tabs of "filled" panels are presented like the tabs of dockFill panels that are directly under the documentNode (editor1 and editor2 in the IDE demo).
If the tabs are on the top border the "header line" would be redundant and could be removed.

tab-location-gui

@jogibear9988
Copy link
Member

jogibear9988 commented Oct 13, 2022

you could try this style:

  .dockspan-tab-host {
      display: flex;
      flex-direction: column-reverse;
  }

then the tabs should be at top

@jogibear9988
Copy link
Member

And

  .dockspan-tab-content .panel-titlebar {
      height: 0 !important;
  }

@akapfham
Copy link
Author

Thanks for your suggestions. I've done a quick test regarding ".dockspan-tab-host" and i am afraid this is not the solution (please see attached screen shot).

tabs-reverse-gui

@jogibear9988
Copy link
Member

maybe like this...

    div:not(.document-manager) > .dockspan-tab-host {
          display: flex;
          flex-direction: column-reverse;
      }

@akapfham
Copy link
Author

Thanks again for the quick response! But i am afraid this doesn't work either. The suggested solution leads to a behaviour that the first tab which is docked "fill" is "behind" the second tab docked "fill".

@jogibear9988
Copy link
Member

what do you mean with "behind"? maybe you could share a example?

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