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

[Solved] Window as a floating toolbar

1 Answer 131 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 13 Aug 2010, 04:14 PM
I'm trying to create a window that behaves a bit like a floating toolbar - i.e. it stays stationary while the content beneath it is allowed to scroll with the browser.

I can get about halfway there simply with 
#MyLovelyWindow
{
        position : fixed !important;
}

which nearly works, except when you scroll and then re-interact with the window. At this moment it panics about its position and kind of gives itself an offset. Is it possible to turn off or override that behavior so that it can be given a fixed position ?

TIA 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Aug 2010, 08:04 AM
Hi Andrew,

 The window component was not planned to be made stationary by using position:fixed. This is probably the reason it misbehaves. I would suggest that you just use the HTML of the window without creating the client-side component. From your requirements it seems that you don't need any client-side features - just the look and feel. If you want to try here is a code snippet:

<div  id="MyLovelyWindow" class="t-widget t-window">
    <div class="t-window-titlebar t-header">
         <span class="t-window-title">[Title of the Window]</span>
        <div class="t-window-actions t-header"></div>
    </div>
     
    <div style="overflow: auto; width: 300px; height: 300px;" class="t-window-content t-content">
            [Content of the window]
    </div>
</div>

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Andrew
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or