main
yumoqing 2024-05-30 23:38:31 +08:00
parent 8e020f2616
commit 390ca55a17
4 changed files with 16 additions and 11 deletions

View File

@ -93,6 +93,12 @@ bricks.DynamicAccordion = class extends bricks.VScrollPanel {
async build_header(){
this.header_w = await this.build_item();
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){
var item = new bricks.AccordionItem({});

View File

@ -17,11 +17,11 @@ bricks.IconBar = class extends bricks.HBox {
}
*/
constructor(opts){
opts.height = opts.height || 'auto';
if (! opts.cheight){
opts.cheight = 2;
}
super(opts);
this.set_style('height', 'auto');
var tools = this.opts.tools;
this.height_int = 0;
for (var i=0;i<tools.length;i++){
var w = this.build_item(tools[i]);
w.set_style('margin-left', this.opts.margin || '10px');
@ -32,7 +32,8 @@ bricks.IconBar = class extends bricks.HBox {
w.set_style('cursor', 'pointer');
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){
var rate = opts.rate || this.opts.rate || 1;

View File

@ -100,11 +100,11 @@ bricks.JsWidget = class {
}
if (this.opts.cwidth){
this.width = bricks.app.charsize * this.opts.cwidth;
style.width = this.width;
style.width = this.width + 'px';
}
if (this.opts.cheight){
this.height = bricks.app.charsize * this.opts.cheight;
style.height = this.height;
style.height = this.height + 'px';
}
if (this.opts.dynsize){
bricks.app.bind('charsize', this.charsize_sizing.bind(this))

View File

@ -10,10 +10,9 @@
"url":"${url}"
}
},
"record_view":{
"widgettype":"DataRow",
"options":{
"editable":{
},
"row_options":{
"fields":[
{
"name":"logo_url",
@ -30,7 +29,6 @@
],
"height":"100%",
"width":"100%"
},
},
"page_rows":800,
"cache_limit":5