Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] contextmenu z-index

Expand Messages
  • shortestpath
    jeez. I just found that this is an IE bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html I applied the fix given in the known issues section
    Message 1 of 6 , Oct 30, 2007
    • 0 Attachment
      jeez. I just found that this is an IE bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html

      I applied the fix given in the known issues section http://developer.yahoo.com/yui/menu/#knownissues and rendered the menu instances to the body element instead of the container element I had for each table.

      ----- Original Message ----
      From: shortestpath <shortestpath@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Tuesday, October 30, 2007 12:24:32 PM
      Subject: Re: [ydn-javascript] contextmenu z-index

      tried as high as 1000.

      a bit more background on my tables: I create initially-empty datatables from arrays; for each datatable create a contextmenu with config: { trigger: myDataTable. getTbodyEl( ), classname: "ctxtmenu", lazyLoad: true, zIndex: 1000 }

      I have an expand/collapse image to the left of each table. When you click an image to expand - I get a json object via xhr and populate the table (using onDataReturnInitial izeTable) . When you right-click on a row, (since it's in the tbody) a context menu appears. If the context menu happens to be close enough to the next table below the current one, the menu shows under.

      I don't think that the fact I'm repopulating my table should cause the menu to appear under the next table, but I'm still fairly new to datatable. I don't see anything in the generated html (via Firebug) that would indicate that the menu should appear underneath the next table. I have even tried giving each table a z-index value of 1.

      ----- Original Message ----
      From: Chisel Wright <chisel@herlpacker. co.uk>
      To: ydn-javascript@ yahoogroups. com
      Sent: Tuesday, October 30, 2007 11:49:03 AM
      Subject: Re: [ydn-javascript] contextmenu z-index

      On Tue, Oct 30, 2007 at 09:44:07AM -0700, shortestpath wrote:
      > Thanks for the suggestion Chisel; I just tried adding lazyLoad (I did have
      > zindex before) but it doesn't seem to work...

      I've got a dialog with a context menu inside it.

      I was seeing the context menu appearing _behind_ the dialog (revealed
      when I moved the dialog out of the way).

      Setting zIndex to something nice and high for the context menu (99)
      seems to have forced it to appear above everything else.

      Did you set a high enough zIndex value?

      --
      Chisel Wright
      e: chisel@herlpacker. co.uk
      w: http://www.herlpack er.co.uk/

      I wrote a todo list; Now I can procrastinate more efficiently!



      ____________ _________ _________ _________ _________ __
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail. yahoo.com


      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.