2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 23:06:05 +00:00

horizontal alignment parameters for textbox

git-svn-id: https://svn.fhem.de/fhem/trunk@4431 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2013-12-20 16:43:40 +00:00
parent a3ba05522e
commit ffdf09b63b

View File

@ -19,7 +19,7 @@ require "98_SVG.pm"; # enable use of plotAsPng()
my @cmd_halign= qw(halign thalign ihalign);
my @cmd_valign= qw(valign tvalign ivalign);
my @valid_valign = qw(top center base bottom);
my @valid_halign = qw(left center right);
my @valid_halign = qw(left center right justified);
# we can
# use vars qw(%FW_types); # device types,
@ -268,7 +268,7 @@ RSS_itemTextBox {
text => $text,
);
$wrapbox->set_font($params{font}, $params{pt});
$wrapbox->set(align => 'justified', width => $boxwidth);
$wrapbox->set(align => $params{thalign}, width => $boxwidth);
my ($left, $top, $right, $bottom) = $wrapbox->draw($x, $y);
return $bottom;
} else {