Bug: Dashboard elements lose positions when group constrained to single flow

Hi everyone... I'm finding that if I constrain a dashboard group to only one flow, any spacing I build into the layout of dashboard elements gets lost every time flows are restarted. Well, the spacing isn't lost exactly-- while the dashboard elements will no longer be arranged as I configured them when viewing the dashboard, visiting the layout tool for the tab still shows my configured layout. And, in fact, just visiting the layout tool and then redeploying the flows is enough to restore that designed layout... at least until flows are restarted.

Is this behavior a bug, or is it actually what one should expect? If it is working as designed, a brief explanation of what is going on and why this is what one should expect would be very much appreciated! Thank you.

Node-Red v1.1.3
node-red-dashboard v2.23.4

Detailed steps to reproduce:

  1. Create a dashboard tab and name it "Example"
  2. Create a group in that tab and name it "Demo"
  3. Create a new flow and name it "Test Flow"
  4. Add three dashboard button nodes to Test Flow. Configure their dimensions to be 1x1 to be in the dashboard group "Demo", on the tab "Example".
  5. On the Layout tab of the dashboard manager, click the button "layout" that appears when hovering the mouse over the entry for the tab "Example"
  6. Arrange the buttons on the dashboard-- the exact arrangement matters little, just be sure to leave empty space between the buttons.
  7. Press Done to close the dashboard layout tool and then deploy the flows
  8. Visit the Example tab of the dashboard. You'll see the Demo group contains three buttons, spaced as you configured in the layout tool
  9. Return to the flows editor and click the "edit" button that appears when hovering over the Demo group entry
  10. In the bottom right corner of the properties editor for the dashboard group node, change the flow restriction from "On all flows" to just "Test Flow"
  11. Press update to close the properties editor and then deploy the flows.
  12. Visit the Example tab in the dashboard again. Now you'll see that all the dashboard elements have lost the spacing with which they'd been configured in the layout tool.
  13. Back in the flows editor, open the layout editing tool for the Example tab. You'll see the layout you previous designed is still shown there.
  14. Without changing anything press Done to close the layout tool and then deploy the flows again.
  15. Visit the Example tab in the dashboard and you'll see that your layout spacing has been restored.
  16. Restart the deployed flows (choose the "Restart Flows" option of the Deploy button)
  17. If you once again visit the Example tab in the dashboard, you'll see that the designed layout has again been lost.
  18. The layout tool for the Example tab will show that the dashboard group's configuration still includes the spaced-out layout you designed in step 6. In fact, visiting the layout tool and closing it without making any changes is enough to restore the correct layout to the dashboard the next time you deploy flows.
  19. If you go back into the properties of the group Demo and change the flow constraint back to "On all flows" and redeploy, it will restore the configured layout of the dashboard once again and this layout will be preserved across flow and Node-Red restarts.