| Author |
Message |
rainbird997
Joined: 01 Jul 2005 Posts: 12
|
Posted: Mon Jul 11, 2005 7:13 pm Post subject: Tree drifts up and down w/page resize |
|
|
I have a CooljsTree Pro included in a table cell of a page. One of the outermost tables is set
<table width="100%" height="100%">
...
<td align="center" valign="middle">
to force the entire 800 x 600 content area to center on the screen.
When the (IE) browser window is switched from maximized to relative sized, and when resizing the window by dragging a corner, the Tree stays in its original position relative to the top of the window (causing it to drift up or down) while the rest of the content area continues to recenter itself. This error corrects itself on a page refresh.
Has anyone else run into this problem, and how can it be fixed or avoided?
thanx |
|
| Back to top |
|
 |
rainbird997
Joined: 01 Jul 2005 Posts: 12
|
Posted: Mon Jul 11, 2005 7:26 pm Post subject: |
|
|
| I just noticed the CooljsMenu Pro I'm using elsewhere in the site does the same thing. |
|
| Back to top |
|
 |
Victor_Chuiko Support Team
Joined: 12 Apr 2005 Posts: 145
|
Posted: Tue Jul 12, 2005 9:27 pm Post subject: |
|
|
| Please, give us an url if it possible, so we could see it on our own. And what version of COOLjsTree do do use? |
|
| Back to top |
|
 |
rainbird997
Joined: 01 Jul 2005 Posts: 12
|
Posted: Wed Jul 13, 2005 1:32 pm Post subject: |
|
|
At http://www.bukacek.com , the home page uses the CooljsTree for the main menu (on the left side). If you go to http://www.bukacek.com/case_studies/ruud.htm , that page uses the CooljsMenu (the plumb bobs across the middle of the content area), which is doing the same thing.
For these pages, I am using CooljsMenu Pro 2.4.8 and CooljsTree Pro 2.6.7.
Also, as long as you're going to take a look, look at the pages with Mozilla Firefox, too. With FF, the menus do not drift around; however, there is a spacing issue that I haven't been able to isolate, which I suspect is related to CooljsTree.
thanx |
|
| Back to top |
|
 |
Victor_Chuiko Support Team
Joined: 12 Apr 2005 Posts: 145
|
Posted: Thu Jul 14, 2005 3:41 am Post subject: |
|
|
I have tested both of your pages and it seems that COOLjsTree works fine. The problem is with COOLjsMenu.
It's just IE bug. It is solved in such way. You write:
| Code: | | <SCRIPT type=text/javascript>menu.initTop();</SCRIPT> |
and you need:
| Code: | <table cellspacing="0" cellpadding="0" border="0"><tr><td>
<SCRIPT type=text/javascript>menu.initTop();</SCRIPT>
</td></tr></table> |
After this it should work fine.
And I've tested your pages in Firefox, but I coudn't see any spacing issue. Could you, please, explain? |
|
| Back to top |
|
 |
rainbird997
Joined: 01 Jul 2005 Posts: 12
|
Posted: Thu Jul 14, 2005 2:14 pm Post subject: |
|
|
Thank you for the attempt, but this did not fix the problem. I enclosed the "menu.initTop" script in a table as you showed, but the menu continues to drift up and down when the page is resized.
The CooljsTree is not working correctly, either. It does the same thing as the CooljsMenu, although it's not quite as obvious because of the page's background image. I tried enclosing the "tree.init()" script in its own table, as well, as you indicated for the CooljsMenu problem, but it didn't help there, either.
Note that I made these corrections on our test server, not the production server address I referenced in my previous posting. So if you look at page source on those pages, you will not see the changes -- however, I definitely did try these fixes, and they did not work.
Again, the problem is that when you resize the browser window vertically by dragging an edge/corner, both the menu and the tree get dragged out of their correct position on the page, because the rest of the page elements are being repositioned dynamically as the page size changes, but the menu objects are not.
The Firefox spacing issue I referred to is that there is a ~75-100pixel gap inserted by FF between the CooljsTree object and the main content window, causing the page-top image and the page itself to be stretched out. It's a fairly obvious display error; if you didn't see it, then I expect it didn't manifest on your computer or your version of FF. Try looking at either page first w/IE and then w/FF.
If you have any other suggestions for either problem, I would appreciate it. |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Jul 14, 2005 10:07 pm Post subject: |
|
|
Please, try the following:
| Code: | <script type="text/javascript">
window.onresize = function () {
if (typeof(window.$CM) != 'undefined')
for (var i in window.$CM)
with (window.$CM[i])
moveXY(1,1),moveXY(0,0);
if (typeof(window.CTrees) != 'undefined')
for (var i in window.CTrees)
with (window.CTrees[i])
moveTo(1,1),moveTo(0,0);
}
</script> |
You can place this code into <head> section. |
|
| Back to top |
|
 |
rainbird997
Joined: 01 Jul 2005 Posts: 12
|
Posted: Wed Aug 24, 2005 1:55 pm Post subject: |
|
|
| The last script you listed did fix the problem with the CoolMenu. Thank you. However, it did not work for the CoolTree object. Could you take another look at the script? Thanks. |
|
| Back to top |
|
 |
Victor_Chuiko Support Team
Joined: 12 Apr 2005 Posts: 145
|
Posted: Wed Aug 31, 2005 9:29 pm Post subject: |
|
|
| It looks like a bug. We will try to fix it in the next version. This code will be compatible and will work with the new version. |
|
| Back to top |
|
 |
|