Author: nbelaevski
Date: 2007-05-02 21:43:26 -0400 (Wed, 02 May 2007)
New Revision: 618
Modified:
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuGroup.jspx
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
Log:
Modified:
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
===================================================================
---
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss 2007-05-03
00:12:34 UTC (rev 617)
+++
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss 2007-05-03
01:43:26 UTC (rev 618)
@@ -42,6 +42,7 @@
font-size : 0px;
border: 0px;
margin : 0px;
+ position: relative;
}
.underneath_iframe{
Modified:
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
---
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2007-05-03
00:12:34 UTC (rev 617)
+++
trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2007-05-03
01:43:26 UTC (rev 618)
@@ -585,8 +585,8 @@
if (layerTop + layerdim.height + labelOffset[1] >= windowHeight) {
var invisibleBottom = layerTop + layerdim.height + labelOffset[1] - windowHeight;
var items = this.layer.firstChild.childNodes;
- if (items.length > 0) {
- var lastItem = items[items.length-1];
+ if (items.length > 1) {
+ var lastItem = items[items.length-2];
// var layerOffset = Position.cumulativeOffset(this.layer);
var itemOffset = Position.positionedOffset(lastItem);
// layerTop = top -(itemOffset[1]-layerOffset[1]);
Modified:
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuGroup.jspx
===================================================================
---
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuGroup.jspx 2007-05-03
00:12:34 UTC (rev 617)
+++
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuGroup.jspx 2007-05-03
01:43:26 UTC (rev 618)
@@ -50,7 +50,7 @@
<jsp:scriptlet><![CDATA[}]]></jsp:scriptlet>
</span>
- <a id="ref#{clientId}:anchor" class="rich-menu-item-label"
href="#">#{component.attributes['value']}</a>
+ <span id="ref#{clientId}:anchor"
class="rich-menu-item-label">#{component.attributes['value']}</span>
<div id="ref#{clientId}:folder" class="dr-menu-node
rich-menu-item-folder"/>
</div>
Modified:
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
===================================================================
---
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2007-05-03
00:12:34 UTC (rev 617)
+++
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2007-05-03
01:43:26 UTC (rev 618)
@@ -92,12 +92,11 @@
} else {
]]></jsp:scriptlet>
- <a id="#{clientId}:anchor"
- href="#"
+ <span id="#{clientId}:anchor"
class="rich-menu-item-label">
#{component.attributes['value']}
<f:call name="renderChildren" />
- </a>
+ </span>
<jsp:scriptlet><![CDATA[
}
Show replies by date