diff --git a/bricks/dynamicaccordion.js b/bricks/dynamicaccordion.js index aed1613..3bdd6a3 100644 --- a/bricks/dynamicaccordion.js +++ b/bricks/dynamicaccordion.js @@ -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({}); diff --git a/bricks/floaticonbar.js b/bricks/floaticonbar.js index fbc0cdb..6f1cfc7 100644 --- a/bricks/floaticonbar.js +++ b/bricks/floaticonbar.js @@ -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