← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16951: Fixed wonky alignment of checkbox in button on linux FF and Chrome.

 

------------------------------------------------------------
revno: 16951
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-10-03 14:12:40 +0200
message:
  Fixed wonky alignment of checkbox in button on linux FF and Chrome.
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisCheckboxMenu.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisCheckboxMenu.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisCheckboxMenu.js	2014-10-03 11:32:55 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisCheckboxMenu.js	2014-10-03 12:12:40 +0000
@@ -165,5 +165,8 @@
                 $checkbox.attr( "checked", "checked" );
             }
         });
+
+        // Cross-browser/OS checkbox alignment fix
+        $checkbox.css( { "vertical-align": "middle", "position": "relative", "bottom" : "1px" } );
     };
 })( jQuery );