material icon indicating copy to clipboard operation
material copied to clipboard

tabs: disappears inside a md-dialog

Open alarrosa14 opened this issue 11 years ago • 24 comments

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?

alarrosa14 avatar Aug 24 '15 21:08 alarrosa14

not a solution, but as a workaround I put an empty at the end of the stack and it fixed the issue for me.

shotokai avatar Jan 30 '17 21:01 shotokai

I am experiencing the problem the same way @thekia19 has described. I would be glad if someone helps to solve this issue. Thanks in advance.

santhosh82 avatar Oct 04 '17 07:10 santhosh82

Problem is still there. Since only last tab is missing, one empty tab at the end hides the problem

ghost avatar Dec 20 '17 12:12 ghost

If you are still seeing this, please open a new issue with a CodePen repro using AngularJS Material 1.1.18+.

Splaktar avatar May 09 '19 22:05 Splaktar