Better handling of mascot + title but no subtitle
commit4c0dea113c03e6cf25177be006d313309f3b7721
authorAlbert Astals <albert.astals@canonical.com>
dateWed 30 Apr 2014, 17:39 (12 years ago)
parent44c7e7b
plugins/Dash/CardCreator.js+2
@@ -302,6 +302,8 @@ function createCardComponent(parent, template, components) {
302302 anchors.verticalCenter: parent.verticalCenter; \
303303 spacing: units.dp(2); \
304304 width: parent.width - x;';
305+ } else if (hasMascot) {
306+ titleAnchors = 'anchors.verticalCenter: parent.verticalCenter;'
305307 } else {
306308 titleAnchors = anchors;
307309 subtitleAnchors = 'anchors.left: titleLabel.left; \