bugfix
This commit is contained in:
parent
8e020f2616
commit
390ca55a17
@ -93,6 +93,12 @@ bricks.DynamicAccordion = class extends bricks.VScrollPanel {
|
|||||||
async build_header(){
|
async build_header(){
|
||||||
this.header_w = await this.build_item();
|
this.header_w = await this.build_item();
|
||||||
this.add_widget(this.header_w);
|
this.add_widget(this.header_w);
|
||||||
|
/*
|
||||||
|
var w = await this.build_item();
|
||||||
|
w.set_style('position', 'sticky');
|
||||||
|
w.set_style('top', 0);
|
||||||
|
return w;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
async build_item(record){
|
async build_item(record){
|
||||||
var item = new bricks.AccordionItem({});
|
var item = new bricks.AccordionItem({});
|
||||||
|
@ -17,11 +17,11 @@ bricks.IconBar = class extends bricks.HBox {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
constructor(opts){
|
constructor(opts){
|
||||||
opts.height = opts.height || 'auto';
|
if (! opts.cheight){
|
||||||
|
opts.cheight = 2;
|
||||||
|
}
|
||||||
super(opts);
|
super(opts);
|
||||||
this.set_style('height', 'auto');
|
|
||||||
var tools = this.opts.tools;
|
var tools = this.opts.tools;
|
||||||
this.height_int = 0;
|
|
||||||
for (var i=0;i<tools.length;i++){
|
for (var i=0;i<tools.length;i++){
|
||||||
var w = this.build_item(tools[i]);
|
var w = this.build_item(tools[i]);
|
||||||
w.set_style('margin-left', this.opts.margin || '10px');
|
w.set_style('margin-left', this.opts.margin || '10px');
|
||||||
@ -32,7 +32,8 @@ bricks.IconBar = class extends bricks.HBox {
|
|||||||
w.set_style('cursor', 'pointer');
|
w.set_style('cursor', 'pointer');
|
||||||
this.add_widget(w);
|
this.add_widget(w);
|
||||||
}
|
}
|
||||||
this.set_style('height', this.height_int + 'px');
|
this.set_style('alignItems', 'center');
|
||||||
|
// this.set_style('justifyContent', 'center');
|
||||||
}
|
}
|
||||||
build_item(opts){
|
build_item(opts){
|
||||||
var rate = opts.rate || this.opts.rate || 1;
|
var rate = opts.rate || this.opts.rate || 1;
|
||||||
|
@ -100,11 +100,11 @@ bricks.JsWidget = class {
|
|||||||
}
|
}
|
||||||
if (this.opts.cwidth){
|
if (this.opts.cwidth){
|
||||||
this.width = bricks.app.charsize * this.opts.cwidth;
|
this.width = bricks.app.charsize * this.opts.cwidth;
|
||||||
style.width = this.width;
|
style.width = this.width + 'px';
|
||||||
}
|
}
|
||||||
if (this.opts.cheight){
|
if (this.opts.cheight){
|
||||||
this.height = bricks.app.charsize * this.opts.cheight;
|
this.height = bricks.app.charsize * this.opts.cheight;
|
||||||
style.height = this.height;
|
style.height = this.height + 'px';
|
||||||
}
|
}
|
||||||
if (this.opts.dynsize){
|
if (this.opts.dynsize){
|
||||||
bricks.app.bind('charsize', this.charsize_sizing.bind(this))
|
bricks.app.bind('charsize', this.charsize_sizing.bind(this))
|
||||||
|
@ -10,10 +10,9 @@
|
|||||||
"url":"${url}"
|
"url":"${url}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"editable":{
|
||||||
"record_view":{
|
},
|
||||||
"widgettype":"DataRow",
|
"row_options":{
|
||||||
"options":{
|
|
||||||
"fields":[
|
"fields":[
|
||||||
{
|
{
|
||||||
"name":"logo_url",
|
"name":"logo_url",
|
||||||
@ -31,7 +30,6 @@
|
|||||||
"height":"100%",
|
"height":"100%",
|
||||||
"width":"100%"
|
"width":"100%"
|
||||||
},
|
},
|
||||||
},
|
|
||||||
"page_rows":800,
|
"page_rows":800,
|
||||||
"cache_limit":5
|
"cache_limit":5
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user