Backport of fixing vertical alignment on date picker icon
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 13 Nov 2015 10:54:10 +0000 (11:54 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 13 Nov 2015 10:54:10 +0000 (11:54 +0100)
includes/ui/ui_input.inc
reporting/includes/reports_classes.inc

index 0e58b36bc874d1411f8af7c42510fa7a3d45b69e..400e3be0a66879985f0f22176011c357f40895f5 100644 (file)
@@ -634,7 +634,7 @@ function date_cells($label, $name, $title = null, $check=null, $inc_days=0,
                $calc_image = (file_exists("$path_to_root/themes/".user_theme()."/images/cal.gif")) ? 
                        "$path_to_root/themes/".user_theme()."/images/cal.gif" : "$path_to_root/themes/default/images/cal.gif";
                $post_label = "<a tabindex='-1' href=\"javascript:date_picker(document.getElementsByName('$name')[0]);\">"
-               . "     <img src='$calc_image' width='16' height='16' border='0' alt='"._('Click Here to Pick up the date')."'></a>\n";
+               . "     <img src='$calc_image' style='vertical-align:middle;padding-bottom:4px;width:16px;height:16px;border:0;' alt='"._('Click Here to Pick up the date')."'></a>\n";
        }       
        else
                $post_label = "";
index 80517758c13deb3efbcbd267b588b7508a6b27f8..42616256295487ed0d308dcb7f3c1c76e0899ba3 100644 (file)
@@ -219,7 +219,7 @@ class BoxReports
                                                $calc_image = (file_exists("$path_to_root/themes/".user_theme()."/images/cal.gif")) ? 
                                                        "$path_to_root/themes/".user_theme()."/images/cal.gif" : "$path_to_root/themes/default/images/cal.gif";
                                                $st .= "<a href=\"javascript:date_picker(document.forms[0].$name);\">"
-                                               . "     <img src='$calc_image' width='16' height='16' border='0' alt='"._('Click Here to Pick up the date')."'></a>\n";
+               .                                 "     <img src='$calc_image' style='vertical-align:middle;padding-bottom:4px;width:16px;height:16px;border:0;' alt='"._('Click Here to Pick up the date')."'></a>\n";
                                        }       
                                        return $st;
                                        break;