ps0604
ps0604

Reputation: 1071

Show div on top of Kendo for Angular Dialog

In this StackBlitz I have a Kendo for Angular Dialog. In the dialog there's a div with position:absolute that I need to show on top of the dialog, not inside it, and the dialog shouldn't have any scroll bars. Is there a way to achieve this?

@Component({
    selector: 'my-app',
    template: `
        <kendo-dialog title="Kendo Dialog" 
              style="position:relative;overflow:visible"
             [width]="400" [height]="100">
            <div id="div1">Some text in the div</div>
        </kendo-dialog>
    `,
    styles: [`
         #div1 {
           position: absolute;
           top: 20px;
           left: 240px;
           width: 300px;
           z-index: 99990;
           background-color: #f0f0f0;
           border: 2px solid blue;
         }
    `]

})
export class AppComponent {

}

Upvotes: 0

Views: 1828

Answers (1)

ps0604
ps0604

Reputation: 1071

Add this to the component styles:

    my-app .k-window-content {
        overflow: visible !important;
    }

Upvotes: 2

Related Questions