3

The sidebar in my application is as follows

<div class="wrapper">
<div class="sidebar-wrapper">
        <ul class="sidebar-nav">
            <li>
             <a uib-tooltip='Home' tooltip-placement="right" href="/home" 
                data-icon="j" class="icon" ></a>
            </li>
        </ul>
 </div>
 <div class="page-content-wrapper"></div>
</div>

The css is as follows

      .sidebar-wrapper{
        position:fixed;
    }

    sidebar-nav{
      position:absolute;
    }

    .wrapper{
      position: relative;
   }
  .page-content-wrapper{
   position: relative;
  }

When I use angular bootstrap tool-tip it seems to be hidden under the the sidebar-wrapper when I set tried the following

.tooltip{
  @extend .tooltip;
  z-index: 1000 !important;
}

it still does not seem to work.

Note: when I use placement as bottom the tool tip appears below but placement right has this issue.

4
  • 1
    Are you able to reproduce this on jsfiddle? Commented Nov 21, 2016 at 3:40
  • 2
    have you tried using tooltip-append-to-body Commented Nov 21, 2016 at 12:15
  • 1
    thanks it worked like a charm Commented Nov 21, 2016 at 13:55
  • then if you don't mind, post the answer for future visitors Commented Nov 22, 2016 at 6:44

1 Answer 1

1

thanks to @svarog it saved me

by adding this html attribute everthing works like a charm!

tooltip-append-to-body="true"


<span  class="fa fa-refresh btn-refresh"  ng-click="restoreUserPreferences(subtable)" uib-tooltip="{{'restore.user.preferences' | translate }}" tooltip-append-to-body="true">
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.