Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dropDownMenu z-index IE bug with RichFaces

 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

There is a famous IE z-index bug affecting some elements generated by richFaces, like dropDownMenu for ex. when some elements (comboBox, fixed calendar, etc.) overlaps the drop-down menus. Officially RichFaces recognizes the bug and says to screw ourselves. I also know how to solve this in a normal html environment when I have access to every element. The problem is RichFaces which generates tons of additional stuff to render its components and direct CSS alteration through the template doesn't work.

Is there any proven jQuery/JS/CSS solution to this for RichFaces?
 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suddenly after hours of experiments I've solved my problem just by wrapping the menu inside div with CSS params typical for this bug solution.

<div style="position: relative; z-index: 50;">

Thanks
 
alf ace
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed the problem by adding following attributes to these two CSS classes

.rf-ddm-unsel {
position: relative;
z-index: 0;
}

.rf-ddm-sel {
position: relative;
z-index: 99;
}
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic