mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Regression with wizard canvas elements
This commit is contained in:
parent
453bec9394
commit
52fe5b938c
2 changed files with 1 additions and 5 deletions
|
@ -6,7 +6,6 @@ import {
|
||||||
chooseDarker,
|
chooseDarker,
|
||||||
LOREM
|
LOREM
|
||||||
} from "wizard/lib/preview";
|
} from "wizard/lib/preview";
|
||||||
import { computed } from "@ember/object";
|
|
||||||
|
|
||||||
export default createPreviewComponent(305, 165, {
|
export default createPreviewComponent(305, 165, {
|
||||||
logo: null,
|
logo: null,
|
||||||
|
@ -14,10 +13,6 @@ export default createPreviewComponent(305, 165, {
|
||||||
|
|
||||||
classNameBindings: ["isSelected"],
|
classNameBindings: ["isSelected"],
|
||||||
|
|
||||||
canvasStyle: computed("width", "height", function() {
|
|
||||||
return `width:${this.width}px;height:${this.height}px`.htmlSafe();
|
|
||||||
}),
|
|
||||||
|
|
||||||
@discourseComputed("selectedId", "colorsId")
|
@discourseComputed("selectedId", "colorsId")
|
||||||
isSelected(selectedId, colorsId) {
|
isSelected(selectedId, colorsId) {
|
||||||
return selectedId === colorsId;
|
return selectedId === colorsId;
|
||||||
|
|
|
@ -41,6 +41,7 @@ export function createPreviewComponent(width, height, obj) {
|
||||||
height,
|
height,
|
||||||
elementWidth: width * scale,
|
elementWidth: width * scale,
|
||||||
elementHeight: height * scale,
|
elementHeight: height * scale,
|
||||||
|
canvasStyle: `width:${width}px;height:${height}px`,
|
||||||
ctx: null,
|
ctx: null,
|
||||||
loaded: false,
|
loaded: false,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue