aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArkadiusz Adamski <arkadiusz.adamski@gmail.com>2015-07-22 08:58:35 +0200
committerArkadiusz Adamski <arkadiusz.adamski@gmail.com>2015-07-22 08:58:35 +0200
commit1e4f15ce41ffcc604f9dae42ccc2564c07f2c335 (patch)
treeb831840c8d424f1ccf99f14fd24159559d381ecc
parentfaf94b8dd9b99d28c71c2620da5c026545b64ad7 (diff)
parentadbed79b4ecb3e8b4e2861960aec03f737827aa0 (diff)
downloadtipboard-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.js5
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)
);
}