Menu icon Foundation

Developer

My Posts

No Content

My Comments

Brian Davidson commented on Matthew's post over 5 years

Using Foundation 5....same issue. Will work on a clean example but the issue seems to be that the height expands only to the size of any content of the inner-wrap div.

Below is my hack which sets a fixed height for the left-menu ; without setting the height value the off-canvas-list scrolls instead of expanding into view.

<div class="off-canvas-wrap">
  <div class="inner-wrap">
    <nav class="tab-bar">
      <section class="left-small">
        <a class="left-off-canvas-toggle menu-icon" ><span></span></a>
      </section>

      <section class="middle tab-bar-section">
        <h1 class="title">Foundation</h1>
      </section>

      <section class="right-small">
        <a class="right-off-canvas-toggle menu-icon" ><span></span></a>
      </section>
    </nav>

    <aside class="left-off-canvas-menu " style="height:300px;">
      <ul class="off-canvas-list">
        <li><label>Foundation</label></li>
        <li><a href="#">The Psychohistorians</a></li>
        <li><a href="#">Great Coffees</a></li>
      </ul>
    </aside>

    <aside class="right-off-canvas-menu">
      <ul class="off-canvas-list">
        <li><label>Users</label></li>
        <li><a href="#">Hari Seldon</a></li>
        ...
      </ul>
    </aside>



  <a class="exit-off-canvas"></a>

  </div>

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Matthew's post over 5 years

Using Foundation 5....same issue. Will work on a clean example but the issue seems to be that the height expands only to the size of any content of the inner-wrap div.

Below is my hack which sets a fixed height for the left-menu ; without setting the height value the off-canvas-list scrolls instead of expanding into view.

<div class="off-canvas-wrap">
  <div class="inner-wrap">
    <nav class="tab-bar">
      <section class="left-small">
        <a class="left-off-canvas-toggle menu-icon" ><span></span></a>
      </section>

      <section class="middle tab-bar-section">
        <h1 class="title">Foundation</h1>
      </section>

      <section class="right-small">
        <a class="right-off-canvas-toggle menu-icon" ><span></span></a>
      </section>
    </nav>

    <aside class="left-off-canvas-menu " style="height:300px;">
      <ul class="off-canvas-list">
        <li><label>Foundation</label></li>
        <li><a href="#">The Psychohistorians</a></li>
        <li><a href="#">Great Coffees</a></li>
      </ul>
    </aside>

    <aside class="right-off-canvas-menu">
      <ul class="off-canvas-list">
        <li><label>Users</label></li>
        <li><a href="#">Hari Seldon</a></li>
        ...
      </ul>
    </aside>



  <a class="exit-off-canvas"></a>

  </div>

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content