[hamster-applet] use exact pixels instead of percentage to fix a rendering bug in firefox



commit dab5414c9fcd0b343ddea9364b9b5b96bb608f11
Author: Toms Bauģis <toms baugis gmail com>
Date:   Fri May 13 21:35:55 2011 +0300

    use exact pixels instead of percentage to fix a rendering bug in firefox

 data/report_template.html |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/report_template.html b/data/report_template.html
index a3896a1..cc36d33 100644
--- a/data/report_template.html
+++ b/data/report_template.html
@@ -241,11 +241,11 @@
                 var col = $("<td />");
 
                 var bar = $("<div class='bar'>&nbsp;</div>");
-                var bar_height = date[1] / dateMax * 100;
+                var bar_height = date[1] / dateMax * 70;
                 if (bar_height < 1)
-                    bar.height("1px");
+                    bar.height(1);
                 else
-                    bar.height(bar_height +"%")
+                    bar.height(bar_height)
 
                 col.append(bar);
                 row.append(col);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]