Fix two scroll bars overlapping
[sdc.git] / catalog-ui / src / app / ng2 / components / ui / modal / modal.component.html
1 <!--
2  ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
3   ~
4   ~ Licensed under the Apache License, Version 2.0 (the "License");
5   ~ you may not use this file except in compliance with the License.
6   ~ You may obtain a copy of the License at
7   ~
8   ~      http://www.apache.org/licenses/LICENSE-2.0
9   ~
10   ~ Unless required by applicable law or agreed to in writing, software
11   ~ distributed under the License is distributed on an "AS IS" BASIS,
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   ~ See the License for the specific language governing permissions and
14   ~ limitations under the License.
15   -->
16   
17 <div class="custom-modal {{input.size}}">
18     <div class="ng2-modal-content"
19         [ngDraggable]="input.isMovable"
20         [handle]="ModalHandle"
21         [bounds]="ModalBounds"
22         [inBounds]="true"
23         [preventDefaultEvent]="false">
24         <div #ModalHandle
25             class="ng2-modal-header modal-type-{{input.type}}"
26             [ngClass]="{'movable': input.isMovable}">
27             <span class="title">{{ input.title }}</span>
28             <span class="close-button" (click)="close()"></span>
29         </div>
30         <div class="ng2-modal-body" >
31             <div *ngIf="input.content">{{input.content}}</div>
32             <div #dynamicContentContainer></div>
33         </div>
34         
35         <div class="ng2-modal-footer">
36             <button *ngFor="let button of input.buttons"
37                     class="tlv-btn {{button.cssClass}}"
38                     [disabled] = "button.getDisabled && button.getDisabled()"
39                     [attr.data-tests-id] = "button.text"
40                     (click) = "button.callback()">{{button.text}}</button>
41         </div>
42     </div>
43 </div>
44 <div #ModalBounds class="modal-background" [ngClass]="{'transparent': input.isMovable}"></div>