dock-spawn-ts icon indicating copy to clipboard operation
dock-spawn-ts copied to clipboard

More control over tab positioning / GUI element creation

Open akapfham opened this issue 3 years ago • 6 comments

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

akapfham avatar Oct 11 '22 08:10 akapfham

you could try this style:

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

then the tabs should be at top

jogibear9988 avatar Oct 13 '22 05:10 jogibear9988

And

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

jogibear9988 avatar Oct 13 '22 05:10 jogibear9988

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

akapfham avatar Oct 13 '22 06:10 akapfham

maybe like this...

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

jogibear9988 avatar Oct 13 '22 22:10 jogibear9988

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".

akapfham avatar Oct 18 '22 06:10 akapfham

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

jogibear9988 avatar Dec 09 '22 13:12 jogibear9988