Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by horus666 on Jun 05, 2009 00:06
open dhtmlx forum
dhtmlxWindow movement limitation under firefox

good morning,

first of all, my code:

<body>
<div id="my_content" style="height: 100%;overflow: auto;"></div>
<script>
var dhxWins = new dhtmlXWindows();
var my_win = dhxWins.createWindow('main_window', 0, 0, 600, 800);
my_win.attachObject("my_content");
my_win.button("close").hide();
my_win.maximize();
</script>
</body>


this code works, using this code on IE6 or above, without any problems.
with firefox 3.0.10, i am not allowed to move the window up or down, just left or right.

if I change the div to a table for example, I can move the window up and down as well (unfortunately without my content ;) )
my content is created with my own php module handler, which works fine without windows.

any ideas?

MfG
Answer posted by Alex (support) on Jun 05, 2009 01:06
Hello,
the reason for the problem is that page size doesn't allow you to move window. If you set the viewport with appropriate size or  define  body  height (bigger than window height), it will be possible to move window:
...
<body  style="height:1000px;">
Answer posted by horus666 on Jun 05, 2009 03:05
perfect, thx a lot

finally didn't add any height to my body-style, but added some js after loading the body-tag:

document.body.style.height=(window.innerHeight-25)+'';

This worked just perfect with both browsers ;)