Align content of multi group at the start
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ module.exports = function (RED) {
|
||||
|
||||
var html = `
|
||||
<script type='text/javascript' src='ui-gauge-group/gauge.min.js'></script>
|
||||
<div id="multi-${iid}" style="width=100%; height=100%; display: flex; flex-wrap: wrap; justify-content: center;"></div>
|
||||
<div id="multi-${iid}" style="width=100%; height=100%; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;"></div>
|
||||
`;
|
||||
|
||||
var done = ui.addWidget({
|
||||
@@ -173,7 +173,7 @@ module.exports = function (RED) {
|
||||
const widthPx = widthToPx(config.width, includeMargin);
|
||||
const heightPx = heightToPx(config.height, includeMargin);
|
||||
|
||||
const container = $(`<div id=${containerId} style="display: flex; flex-wrap: wrap; justify-content: center" />`);
|
||||
const container = $(`<div id=${containerId} style="display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;" />`);
|
||||
|
||||
container.css("width", `${widthPx}px`);
|
||||
container.css("height", `${heightPx}px`);
|
||||
|
||||
Reference in New Issue
Block a user