Author: vmolotkov
Date: 2008-03-21 12:19:20 -0400 (Fri, 21 Mar 2008)
New Revision: 7069
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
Log:
http://jira.jboss.com/jira/browse/RF-2580
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
===================================================================
---
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2008-03-21
16:15:18 UTC (rev 7068)
+++
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2008-03-21
16:19:20 UTC (rev 7069)
@@ -366,6 +366,10 @@
renderChild(context, facet);
} else {
writer.startElement(HTML.IMG_ELEMENT, orderingList);
+ //buttons sometimes don't work under IE if mouse cursor
+ //is above some special areas of the button
+ writer.writeAttribute(HTML.style_ATTRIBUTE,
"margin:0px;padding:0px;border:0px;", null);
+
writer.writeAttribute(HTML.width_ATTRIBUTE, "15", null);
writer.writeAttribute(HTML.height_ATTRIBUTE, "15", null);
writer.writeAttribute(HTML.border_ATTRIBUTE, "0", null);
@@ -412,7 +416,6 @@
if (label == null) {
label = helper.getDefaultText();
}
-
writer.writeText(label, null);
}
}
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
---
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2008-03-21
16:15:18 UTC (rev 7068)
+++
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2008-03-21
16:19:20 UTC (rev 7069)
@@ -71,7 +71,7 @@
}
.rich-ordering-list-button-content {
- padding : 0px 4px 0px 1px;
+ padding : 0px 1px 0px 1px;
text-align : left;
white-space: nowrap;
}