Author: ivaynberg
Date: Fri Feb  2 09:45:34 2007
New Revision: 502672

URL: http://svn.apache.org/viewvc?view=rev&rev=502672
Log:
another default button tweak

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java?view=diff&rev=502672&r1=502671&r2=502672
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java
 Fri Feb  2 09:45:34 2007
@@ -557,17 +557,9 @@
                }
 
                // append the button
-               String userAgent = 
((WebClientInfo)getSession().getClientInfo()).getUserAgent();
                buffer.append("<input type=\"submit\" 
value=\"").append(value).append("\" name=\"").append(
                                defaultButton.getInputName()).append("\"");
-               if (userAgent != null && userAgent.indexOf("MSIE") != -1)
-               {
-                       buffer.append("style=\"width: 0px; height: 0px; 
position: absolute;\"");
-               }
-               else
-               {
-                       buffer.append(" style=\"display: none\"");
-               }
+               buffer.append("style=\"width: 0px; height: 0px; position: 
absolute; left;-10px;\"");
                buffer.append(" />");
                getResponse().write(buffer);
        }


Reply via email to