diff options
author | Arkadiusz Adamski <arkadiusz.adamski@gmail.com> | 2015-07-22 08:58:35 +0200 |
---|---|---|
committer | Arkadiusz Adamski <arkadiusz.adamski@gmail.com> | 2015-07-22 08:58:35 +0200 |
commit | 1e4f15ce41ffcc604f9dae42ccc2564c07f2c335 (patch) | |
tree | b831840c8d424f1ccf99f14fd24159559d381ecc | |
parent | faf94b8dd9b99d28c71c2620da5c026545b64ad7 (diff) | |
parent | adbed79b4ecb3e8b4e2861960aec03f737827aa0 (diff) | |
download | tipboard-1e4f15ce41ffcc604f9dae42ccc2564c07f2c335.tar.gz tipboard-1e4f15ce41ffcc604f9dae42ccc2564c07f2c335.tar.bz2 tipboard-1e4f15ce41ffcc604f9dae42ccc2564c07f2c335.zip |
Merge pull request #28 from allegro/fix/text-tile
Fixed styling text-tile.
-rw-r--r-- | tipboard/tiles/text.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tipboard/tiles/text.js b/tipboard/tiles/text.js index 457cc02..b0ce783 100644 --- a/tipboard/tiles/text.js +++ b/tipboard/tiles/text.js @@ -11,11 +11,12 @@ function updateTileText(id, data, meta, tipboard) { var nodeWithText = containers[0]; $(nodeWithText).html(data['text']); + var textSelector = '#' + id + ' .text-container'; if (meta.font_size) { - $('.text-container').css("font-size", meta.font_size); + $(textSelector).css("font-size", meta.font_size); } if (meta.font_color) { - $('.text-container').css( + $(textSelector).css( "color", Tipboard.DisplayUtils.replaceFromPalette(meta.font_color) ); } |