From adbed79b4ecb3e8b4e2861960aec03f737827aa0 Mon Sep 17 00:00:00 2001 From: Tymoteusz Jankowski Date: Wed, 22 Jul 2015 08:38:11 +0200 Subject: Fixed styling text-tile. There was a buggy selector for style applying in text-tile which took only a text class instead of 'tile id followed by the class' --- tipboard/tiles/text.js | 5 +++-- 1 file 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) ); } -- cgit v1.2.3