Problem with scrollbar with Kendo window

I am using kendo window. When I do not specify the width of the kendo window, a horizontal scroll bar enters the browser window. The code is as follows.

 window.kendoWindow({
        actions: [
          "Pin",
          "Minimize",
          "Maximize",
          "Close"
       ],
       position:{
          top:0,
          left:0
       },
       close: onClose,
});

Can someone explain why this is happening? thanks in advance

+4
source share
3 answers

I'm not sure, and I think you will have to ask Telerik about this.

My guess is maybe this is due to the css style.

A workaround can set the width as follows:

width:"99.6%"

This window fits perfectly in the browser without scrollbars.

I edited jsfiddle with width

+1
source

. . CSS :

.k-resize-ne,
.k-resize-se,
.k-resize-e {
  right: 0;
}
0

Source: https://habr.com/ru/post/1538351/


All Articles