From d3ae675c97528a4a82da916beaa87af91b090587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Feb 2019 10:58:33 +0100 Subject: [PATCH] Add support for height and width on notebook issue8078 review45921002 --- CHANGELOG | 1 + src/view/form.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 52464235ea..fd7beec174 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add support for height and width on notebook * Use tab key for tab navigation * Use record and field properties of widget instead of method arguments * Reduce offset when no search result diff --git a/src/view/form.js b/src/view/form.js index a4ce70e6f0..c66e54d2cc 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -180,6 +180,12 @@ function eval_pyson(value){ attributes.colspan = 4; } var notebook = new Sao.View.Form.Notebook(attributes); + if (attributes.height) { + notebook.el.css('min-height', attributes.height + 'px'); + } + if (attributes.width) { + notebook.el.css('min-width', attributes.width + 'px'); + } this.notebooks.push(notebook); this.state_widgets.push(notebook); container.add(attributes, notebook);