changeset 8b6d520e02a9 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=8b6d520e02a9
description:
Add support for height and width on notebook
issue8078
review45921002
diffstat:
CHANGELOG | 1 +
src/view/form.js | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r bd1eefe3bcc7 -r 8b6d520e02a9 CHANGELOG
--- a/CHANGELOG Wed Feb 13 10:56:58 2019 +0100
+++ b/CHANGELOG Wed Feb 13 10:58:33 2019 +0100
@@ -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 -r bd1eefe3bcc7 -r 8b6d520e02a9 src/view/form.js
--- a/src/view/form.js Wed Feb 13 10:56:58 2019 +0100
+++ b/src/view/form.js Wed Feb 13 10:58:33 2019 +0100
@@ -180,6 +180,12 @@
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);