diff --git a/fhem/FHEM/98_DOIF.pm b/fhem/FHEM/98_DOIF.pm index 093132c46..69bf91324 100644 --- a/fhem/FHEM/98_DOIF.pm +++ b/fhem/FHEM/98_DOIF.pm @@ -6244,7 +6244,7 @@ sub cylinder_mode $out.= sprintf('%s',$xBegin,$null+$heightoffset+2,0) if (defined $null); $out.= sprintf('%s',$xBegin,+$heightoffset,$max); - my $yBegin=13+($height-@values*$heightval)/2; + my $yBegin=14+($height-@values*$heightval)/2; my $xValue=$xLeft; my $yValue=$yBegin+$heightval-1; my $val_sum_pos=0; @@ -6276,11 +6276,11 @@ sub cylinder_mode my $yText; if (defined $text and $text ne "") { $out.= sprintf('%s',$xBegin+10,$yBegin+$i*$heightval,hsl_color($color),$text.":"); - } else { - $yValue -=7; - } - if ($heightval == 10) { - $yText=$yValue+7; + if ($heightval == 10) { + $yText=$yValue+7; + } else { + $yText=$yValue-4; + } } else { $yText=$yValue-4; }