Comment 0 for bug 1393008

Revision history for this message
Laszlo Kudela (laszlokudela) wrote : Changing attributes in scope template (CategoryRenderer) has no effect on the layout

If I change the WEATHER_TEMPLATE in the scopes example to:

const static string WEATHER_TEMPLATE =
        R"(
{
        "schema-version": 1,
        "template": {
        "category-layout": "carousel",
        "card-layout": "horizontal",
        "card-size": "small",
 "card-background":"color:///#0F0F0F"
        },
        "components": {
        "title": "title",
        "art" : {
        "field": "art"
        },
        "subtitle": "subtitle"
        }
        }
        )";

The cards are placed in carousel style, but the background color is simply omitted, the color of the card stays black.

If the card-layout is changed from "horizontal" to "vertical", the color is there, and the cards in a carousel style, but the bottom 10% of the cards seem to be clipped. (Screenshot attached)

This is my first bug report ever, so please let me know what else I should add, or if I am at the right place at all.

Reported from: http://developer.ubuntu.com/scopes/cookbook/