Results 1 to 7 of 7

Thread: DwtMenu & popdown

  1. #1
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    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.

  2. #2
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    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 ?

  3. #3
    rdargahi is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    49
    Rep Power
    9

    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?

  4. #4
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    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.

  5. #5
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    Default

    Just being curious

    did you manage to solve this problem ? If yes, where can I get the fix ?

  6. #6
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    The bug is still open. You'll be able to get updates soon when we open up bugzilla for public access.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  7. #7
    rdargahi is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    49
    Rep Power
    9

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Duplicate declaration in DwtMenu
    By Heladito in forum Developers
    Replies: 1
    Last Post: 11-18-2005, 11:07 AM
  2. Struggling with DwtMenu...
    By Heladito in forum Developers
    Replies: 0
    Last Post: 11-11-2005, 02:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •