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.

dialog: doesn't have a scroll-bar (even in chrome) #7025

@KalpanaAr

Description

@KalpanaAr

My mdDialog grows bigger in size dynamically without adding a scroll-bar. When it becomes too big, I am not even able to see the beginning of dialog? Is this an issue or am I missing something? Can someone point me in the right direction? Thanks!

 <md-button  
        ng-if="drb.status==='Pending'" 
        class="md-icon-button dialogdemoBasicUsage"  
        flex="100" flex-gt-md="auto" 
        aria-label="comment" 
        ng-controller="commentController" 
        ng-click="commentModal(drb)" 
        style="padding-top:12px;">
              <md-icon md-svg-icon="assets/icons/ic_comment_black_48px.svg" 
                        class="material-icons md-24">
               </md-icon>
</md-button>
   $scope.commentModal = function(drb) {
      $mdDialog.show({
        scope: $scope,
        preserveScope: true,
        controller: DialogController,
        templateUrl: templateUrl,
        parent: angular.element(document.body),
        clickOutsideToClose: true,
        fullscreen: $scope.useFullScreen,
        locals : {drb : drb}
      });
    };

//Modal Controller
    function DialogController(drb, $filter, $scope, $mdDialog) {
      $scope.drbRequest = drb;
      $scope.customFullscreen = $mdMedia('xs') || $mdMedia('sm');
      $scope.useFullScreen = ($mdMedia('sm') || $mdMedia('xs'))  && $scope.customFullscreen;

      $scope.comments = [{who: 'jack', when: 'Dec 3, 2015 12:05 PM', comment: 'Hello'},
                         {who: 'ana', when: 'Dec 6, 2015 12:05 PM', comment: 'hi'},
        {who: 'jack', when: 'Dec 3, 2015 12:05 PM', comment: 'Hello'},
        {who: 'ana', when: 'Dec 6, 2015 12:05 PM', comment: 'hi'},
        {who: 'jack', when: 'Dec 3, 2015 12:05 PM', comment: 'Hello'},
        {who: 'ana', when: 'Dec 6, 2015 12:05 PM', comment: 'hi'},
        {who: 'jack', when: 'Dec 3, 2015 12:05 PM', comment: 'Hello'},
        {who: 'ana', when: 'Dec 6, 2015 12:05 PM', comment: 'hi'},
        {who: 'jack', when: 'Dec 3, 2015 12:05 PM', comment: 'Hello'},
    ....];
};

Screenshot

dialog

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions