Skip to content

Commit 3de169c

Browse files
committed
only use props.width/height in group layout css
1 parent 14da347 commit 3de169c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/layouts/Group.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ export default {
117117
widgetStyles () {
118118
return (widget) => {
119119
const styles = {}
120-
const height = widget.props.height || widget.layout.height
121-
const width = widget.props.width || widget.layout.width
120+
const height = widget.props.height
121+
const width = widget.props.width
122122
styles['grid-row-end'] = `span ${height}`
123123
styles['grid-template-rows'] = `repeat(${height}, minmax(var(--widget-row-height), auto))`
124124
styles['grid-column-end'] = `span min(${this.getWidgetWidth(+width)}, var(--layout-columns))`

0 commit comments

Comments
 (0)