Better vertical alignment of date picker icon.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 13 Nov 2015 04:48:02 +0000 (05:48 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 13 Nov 2015 04:48:02 +0000 (05:48 +0100)
includes/ui/ui_input.inc
reporting/includes/reports_classes.inc

index feb136ffdfd64600bec9a97aa1abf9a9374c71fb..5aa4f5694a0d1d29ba3ff9500641fdef5db6ba14 100644 (file)
@@ -653,7 +653,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 b7cccecc4590417a48ef8029972d3078187825c1..01e76da7583cd568bce7ec5b7817147baf348af8 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;