Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012041Openbravo ERPB. User interfacepublic2010-01-22 00:252010-01-23 00:00
dbaz 
dbaz 
highmajoralways
closedfixed 
20Community Appliance
 
 
Core
No
0012041: Input type text written text display 1px below when not focused in FF3.6
In the new Firefox 3.6, the input type text of the application text is displayed one pixel below of the focused state (or any previous version of FF).

This doesn't affect to text area and it seems to be a bug in the new Firefox 3.6
See any input with text
Here is a basic example of a html with the Firefox 3.6 bug

<html>
  <head>
    <style type="text/css">
      .class1 {
        border: 1px solid #888888;
        font-family: tahoma, arial, helvetica, sans-serif;
        font-size: 8pt;
        color: #303030;
        background-color: #FFFFFF;
        padding: 0px;
        padding-left: 4px;
        padding-top: 1px;
        height: 17px;
        width: 280px;
      }
    </style>
  </head>
  <body>
    <input value="Openbravo" class="class1"></input>
  </body>
</html>


If there is a padding defined before a padding-top, a strange thing happens. With firebug we see that the padding: 0px is ignored, but it is not (also it is not applied).

In the example above no matter in padding-top: 1px is set to 1 or to 2px because the displayed appearence is the same (as if it was 2px).

Althoug a text area has the same class it just happens in text input.

In Openbravo the padding: 0px is not in dojoValidateValid, is defined in the beginning of the CSS in
* {margin: 0px; padding: 0px;}
which is a property which is going to be inherited by all the classes (included dojoValidateValid)

The solution in a CSS change in affected classes to ensure there is no padding: XX and padding-top: XX collision by just be one padding: XX
No tags attached.
related to backport 0012220 closed dbaz Input type text written text display 1px below when not focused in FF3.6 
png Firefox3.6.png (7,297) 2010-01-22 00:26
https://issues.openbravo.com/file_download.php?file_id=2155&type=bug
png
Issue History
2010-01-22 00:25dbazNew Issue
2010-01-22 00:25dbazAssigned To => dbaz
2010-01-22 00:26dbazFile Added: Firefox3.6.png
2010-01-22 00:26dbazNote Added: 0023724
2010-01-22 00:27hgbotCheckin
2010-01-22 00:27hgbotNote Added: 0023725
2010-01-22 00:27hgbotStatusnew => resolved
2010-01-22 00:27hgbotResolutionopen => fixed
2010-01-22 00:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a2126ad12f69b1dae4456f16b07c46adaf736652 [^]
2010-01-22 12:52plujanNote Added: 0023742
2010-01-22 12:52plujanStatusresolved => closed
2010-01-22 17:05hudsonbotCheckin
2010-01-22 17:05hudsonbotNote Added: 0023760
2010-01-23 00:00anonymoussf_bug_id0 => 2937528
2010-02-10 21:56dbazRelationship addedrelated to 0012220

Notes
(0023724)
dbaz   
2010-01-22 00:26   
Added a .png to a better view of the issue
(0023725)
hgbot   
2010-01-22 00:27   
Repository: erp/devel/pi
Changeset: a2126ad12f69b1dae4456f16b07c46adaf736652
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Fri Jan 22 00:26:00 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a2126ad12f69b1dae4456f16b07c46adaf736652 [^]

Fixed issue 12041: Now input type text display ok in FF3.6

---
M src/org/openbravo/erpCommon/security/Login_F1.html
M web/js/utils.js
M web/skins/Default/Openbravo_ERP_250.css
---
(0023742)
plujan   
2010-01-22 12:52   
Tested in live builds
(0023760)
hudsonbot   
2010-01-22 17:05   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/a2126ad12f69 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/ba83bb4d9240 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15962.obx [^]