From 12f6253de7c4c02d561f01d645d82ebd9149a67a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 20 Sep 2025 09:03:55 +0200 Subject: [PATCH] menu: change default layout to vertical --- CHANGELOG.md | 1 + src/client/widgets/basics/menu.mjs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 314b6745..5352d2f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - canvas: added `contextType` property - file: honor server's `remote-root` option (remove root path from displayed path and returned value) - matrix: if `scroll` is `true`, children's values no longer feed the matrix' value and onValue script, it will be used for scrolling state, like with panels + - menu: changed default `layout` to `vertical` - scripting - user scripts are longer protected against infinite loop and the main window object may be reached (it's not supported to break out of scripting context, but resources are no longer wasted to prevent it) diff --git a/src/client/widgets/basics/menu.mjs b/src/client/widgets/basics/menu.mjs index 1b379c8a..45139331 100644 --- a/src/client/widgets/basics/menu.mjs +++ b/src/client/widgets/basics/menu.mjs @@ -33,8 +33,8 @@ class Menu extends MenuBase { textAlign: {type: 'string', value: 'center', choices: ['center', 'left', 'right'], help: 'Set to `left` or `right` to change text alignment (otherwise center)'}, menuAlignV: {type: 'string', value: 'center', choices: ['center', 'top', 'bottom'], help: 'Set to `top` or `bottom` to change menu alignment (otherwise center)'}, menuAlignH: {type: 'string', value: 'center', choices: ['center', 'left', 'right'], help: 'Set to `left` or `right` to change menu alignment (otherwise center)'}, - layout: {type: 'string', value: 'circular', choices: ['circular', 'horizontal', 'vertical', 'grid'], help: [ - 'Defines whether the menu\'s layout should be rendered in a circle or in a box' + layout: {type: 'string', value: 'vertical', choices: ['circular', 'horizontal', 'vertical', 'grid'], help: [ + 'Defines how the menu\'s item are laid out' ]}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template".'}, },