Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve on Feb 23, 2009 16:15
open dhtmlx forum
Making dhtmlXWindow style position = "fixed"

Greetings,

I've been experimenting with dhtmlXWindows and have been using them like one would use a menu ... I slide the xwin down/up from outside the top of an iframe ... I've been able to do this by including the suggested line - my_Wins._fixWindowPositionInViewport=function(){}; which has been working great !

I would now like to set the style position of the xwindow (once I slide it down) to "fixed" so that it stays in the same locked position if the page is scrolled when the user scrolls using the frame scrollbar.

Is it possible to make this happen just for selective xwindows that I create and slide down ?

All of the windows that I'm sliding down use the same skin css.

Any assistance is most appreciated.

Thanks,
Steve
Answer posted by Support on Feb 24, 2009 04:05
Hello,

Window can be frozen on its position using dhxWins.window(id).denyMove() method.
You can test this functionality in demo, just uncheck "Allow Moving".
http://dhtmlx.com/docs/products/dhtmlxWindows/samples/init/extended_init.html?un=1235477420000
Answer posted on Feb 24, 2009 15:56
Thanks for your reply.

This doesn't seem to do what I'm looking for though.
 
When I go to the suggested demo page and uncheck "Allow Moving",  the dhtmlXwindow still scrolls with the page when I use the main browser window verticle scroll bar.
 I want the dhtmlXwindow to remain in view when I scroll the page using main browser scroll bar as if I had applied   - style "position:fixed" to the  object.
Is this in any way possible ?

Thanks,
Steve
Answer posted by Support on Feb 25, 2009 02:53
Not all browser have full support of position:fixed; recommended way:
Trace browser position and use dhxWins.window(id).setPosition().