Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #104172
    jqwidgetsdev
    Participant

    Hi,

    For this exampple https://www.htmlelements.com/vue/demos/splitter/events/ I am noticing the splitter appears halfway down the screen and not aligned to top.

    Can you whip up an example on how to resolve this?

    Thanks.

    #104180

    Hi,

    The positioning of the element is done with CSS, what do you mean by halfway down the screen?
    The example demonstrates the events of the splitter.

    Please, explain further your problem

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

    #104185
    jqwidgetsdev
    Participant

    Hi,

    Here goes.

    DOM
    .smart-window .smart-content-container
    height: 100% <===== is the culprit

    When I disable height the splitter appears as normal.

    Here is my template

    <template>
      <div class="vue-root">
        <smart-window ref="window" opened maximized label="">
          <Menu />
          <smart-splitter>
            <smart-splitter-item collapsible size="300">
              <NavigationBar />
            </smart-splitter-item>
            <smart-splitter-item collapsible>
              <TabsMain />
            </smart-splitter-item>
          </smart-splitter>
        </smart-window>
      </div>
    </template>

    CSS

    <style scoped>
    .smart-splitter {
      width: 100%;
      height: 100%;
    }
    
    @media screen and (max-width: 700px) {
      .smart-window {
        width: 90% !important;
        left: 5% !important;
        top: 5px !important;
      }
    }
    </style>
    #104191
    jqwidgetsdev
    Participant

    Can you please share an example with a window and a splitter?

    Thank you.

    #104198

    Hi,

    Here is a very simple demo of Smart.Splitter in a Smart.Window:
    https://codepen.io/svetoslavb04/pen/OJwmPdZ

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.