Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

tabs: disappears inside a md-dialog #4307

@alarrosa14

Description

@alarrosa14

angular-material v0.10.1.
Google Chrome.

In the md-dialogI template I have something like this:

<md-tabs class="chop-tab" md-dynamic-height="true" md-border-bottom="true" md-center-tabs="true">
   <md-tab ng-repeat="difficulty in ['easy', 'medium', 'hard']" id="{{difficulty}}">
      <md-tab-label> {{difficulty}} </md-tab-label>
      <md-tab-body class="md-padding">
      ...
      <md-tab-body>
   </md-tab>
</md-tabs>

and this is how I show it:

$mdDialog.show({
        targetEvent: ev,
        animate: false,
        clickOutsideToClose: true,
        controller: "SomeCtrl",
        resolve: {
          resolve_promise: function(service){
            return service.promise();
          }
        },
        templateUrl: "<url to template with code shown above>",
      });

The thing is that sometimes it works as expected and some other times the entire md-tabs element is not shown. Te strangest thing is that in the Chrome Inspector y toggle off and then back to on the overflow: visible property of md-tabs > md-tabs-content-wrapper element and magically the tabs are shown correctly.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions