Add support for height and width on notebook

issue8078
review45921002
This commit is contained in:
Cédric Krier
2019-02-13 10:58:33 +01:00
parent e996af01c9
commit d3ae675c97
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -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
+6
View File
@@ -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);