Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-2005, 09:54 AM
Project Contributor
 
Posts: 54
Default DwtMenu & popdown

I just have a small question regarding the DataViewer example.

If you right-click on one of the column header, an ActionMenu is displayed to the user. If now I click anyWhere in the Window outside the ActionMenu, the menu is popdowned.
Which component / listener gets this click and hides the menu, by calling the popdown function ?

In my example here (DWT components and existing HTML, the ActionMenus don't get popdowned under IE6. However, they do under FireFox. It was all working OK till I changed to M2.

Thx in advance.

Last edited by Heladito; 11-18-2005 at 09:58 AM..
Reply With Quote
  #2 (permalink)  
Old 11-18-2005, 10:33 AM
Project Contributor
 
Posts: 54
Default

After a bit of debugging, I found out that the ActionMenus were popdowned under IE 6 if you clicked anywhere in the DwtShell or on another Dwt component. Since in my example, I have a shell size set to (0, 0), menus were not popdowned. I simply made the shell bigger and clicked into it and things were working OK.

Now, what has changed regarding this issue between M1 and M2 ? I'd like to keep my shell with a size of (0, 0), since I want to integrate dwt components with existing HTML code.

Basically, with this problem, it means you cannot mix up Dwt components with existring html under IE, or you'll run into trouble regarding event handling. For some reason, function DwtMenu._outsideMouseDownListener, is not called under IE if you don't click in the DwtShell.

I would see this as a bug. What do you think ?
Reply With Quote
  #3 (permalink)  
Old 11-18-2005, 01:28 PM
Zimbra Employee
 
Posts: 49
Default

Bug filed id:4742. In the meantime one possible workaround you might try for now is to allow the shell to be 100% size (i..e default) and reparent the body elements to the shell's div. This may not be practical for you depending on how complex the body element is. Though you may be able to wrap the top level elements in a div

e.g.

<body>
lots of elements
</body>

<body>
<div id="someId">
lots of elements
</div>
</body>

Then reparent "someId" to the shell's div?
Reply With Quote
  #4 (permalink)  
Old 11-21-2005, 01:46 AM
Project Contributor
 
Posts: 54
Default

Thx for the reply.

I think I'll work with Firefox since it works with this browser. You must have changed a little thing from M1 to M2 that IE didn't digest

I am still in the testing / evaluating / "trying out things" phase of the development I have to do, si I can do without IE for a little moment. If you have troubles correcting the problem, I'll try the workaround.
Reply With Quote
  #5 (permalink)  
Old 12-15-2005, 08:57 AM
Project Contributor
 
Posts: 54
Default

Just being curious

did you manage to solve this problem ? If yes, where can I get the fix ?
Reply With Quote
  #6 (permalink)  
Old 12-15-2005, 12:37 PM
Zimbra Employee
 
Posts: 4,792
Default

The bug is still open. You'll be able to get updates soon when we open up bugzilla for public access.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #7 (permalink)  
Old 12-17-2005, 02:22 AM
Zimbra Employee
 
Posts: 49
Default

Quote:
Originally Posted by Heladito
Just being curious

did you manage to solve this problem ? If yes, where can I get the fix ?
Just an update. The fix for this should be available in the next couple of days. I have also created added a new method to DwtShell called setVirtual. This will allow the Shell to behave virtually and ensure that things like menu's, dialogs behave correctly. I will be posting an example of how this all works as well
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.