on xenial help sign in
no need for a variable here
commitc88ea0ab3b82906eec478d5b076c1e7fd406617d authorAlbert Astals <albert.astals@canonical.com> dateTue 6 May 2014, 16:19 (12 years ago) parentdb87b68
1 file changed+1−2
plugins/Dash/CardCreator.js+1−2
plugins/Dash/CardCreator.js+1−2
@@ -142,7 +142,6 @@ function cardString(template, components) {
142142 }
143143
144144 if (headerAsOverlay) {
145− var height = 'fixedHeaderHeight != -1 ? fixedHeaderHeight : headerHeight;\n';
146145 code += 'Loader { \n\
147146 id: overlayLoader; \n\
148147 anchors { \n\
@@ -155,7 +154,7 @@ function cardString(template, components) {
155154 visible: showHeader && status == Loader.Ready; \n\
156155 sourceComponent: ShaderEffect { \n\
157156 id: overlay; \n\
158− height: ' + height + ' \n\
157+ height: fixedHeaderHeight != -1 ? fixedHeaderHeight : headerHeight; \n\
159158 opacity: 0.6; \n\
160159 property var source: ShaderEffectSource { \n\
161160 id: shaderSource; \n\