This is a migrated thread and some comments may be shown as answers.

Problem with window pinned

6 Answers 145 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tihomir
Top achievements
Rank 1
Tihomir asked on 12 Jan 2016, 09:50 PM

I want to achieve the following behavior, 

http://dojo.telerik.com/UNIJa

 so that the window moves together with the page content during scrolling.

Here is my very simple code,

$("#OUView").kendoWindow({
        pined: false,
        position: { top: 400 }
    });

but unfortunately the window is pinned and don't moves with the page content.

I have the newest available kendo.all.min.js 

Thanks in advance!

6 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 14 Jan 2016, 04:11 PM
Hello Tihomir,

The demo you have provided works as expected on my side, so I am a little confused what the desired behavior is. Please check the following video and let me know if I am missing something:

http://screencast.com/t/3x4b12Be

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tihomir
Top achievements
Rank 1
answered on 15 Jan 2016, 01:22 AM

Hi Dimo,

thank you!

Correct, the demo is working fine. What I just wanted to say is: the same simple code "works not on my machine".

Regardless of whether if I set pinned to false or true - the window is allways pinned when I scroll the page.

0
Accepted
Dimo
Telerik team
answered on 15 Jan 2016, 06:14 AM
Hi Tihomir,

I suspect that you are not scrolling the page, but some <div> in the page. In this case the Window will not move, because it is absolutely positioned with regard to the <body> element's top-left corner, and the body does not move either.

If changing the page layout and scrolling logic is not acceptable, then another possible approach is to append the Window to the scrollable <div> and apply a position:relative style to that <div>.

http://dojo.telerik.com/UNIJa/3

If your scenario is different, please modify the demo I sent, so that I can inspect it.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tihomir
Top achievements
Rank 1
answered on 15 Jan 2016, 10:20 AM

Hey Dimo,

thank you very much.

I guess, that is the solution, but I can't test it. Unfortunatelly both IE and Chrome give me "SCRIPT1014: Invalid character File: mytest.css, Line: 1, Column: 1"

for the # selector caracter.

 

#example {
        overflow: auto;
      }      
      .position-relative {
        position: relative;
      }

that is the solution
that is the solution
that is the solution
that is the solution
that is the solution
that is the solution
0
Tihomir
Top achievements
Rank 1
answered on 15 Jan 2016, 11:42 AM

Hi Dimo,

I guess that your suggestion will correct the issue, but I couldn't test it, because IE/Chrome gives me the following css error:

"SCRIPT1014: Invalid character" 

for the #-selector caracter in the css-file.

suggestion
suggestion
0
Tihomir
Top achievements
Rank 1
answered on 15 Jan 2016, 10:06 PM

Hi Dimo,

the problem with SCRIPT1014 was an incorrect css-file registration.

Now it's working fine. 

Thank you for all!

 

Tihomir

Tags
Window
Asked by
Tihomir
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Tihomir
Top achievements
Rank 1
Share this question
or