Page 1 of 1
[INFO REQ] widgetMap.rowHeigh is undefined
Posted: Wed Jun 16, 2021 9:43 am
by sisco
Hello,
i'm trying to use this exemple https://www.bryntum.com/examples/scheduler/rowheight/
But when i do this :
this.scheduler = new bryntum.scheduler.Scheduler(this._schedulerConfig);
this._scheduler$widgetMap = this.scheduler.widgetMap;
console.log(this._scheduler$widgetMap);
console.log(this._scheduler$widgetMap.rowHeight);
i got this :
- CaptureRowHeigt.PNG (20.88 KiB) Viewed 351 times
And when i set, rowHeight in config, always got default size.
this._schedulerConfig = {
rowHeight: 32,
barMargin: 1,
resourceMargin: 7,
appendTo: this._schedulerContainerId,
Re: [INFO REQ] widgetMap.rowHeigh is undefined
Posted: Wed Jun 16, 2021 11:22 am
by saki
widgetMap
is not supposed to contain rowHeight
but the references to the descendant widgets. See https://bryntum.com/docs/scheduler/#Core/widget/Container#property-widgetMap for details, please.
this.scheduler.rowHeight
should give you 32, which you gave in the _schedulerConfig
Re: [INFO REQ] widgetMap.rowHeigh is undefined
Posted: Wed Jun 16, 2021 11:57 am
by sisco
Thanks,
It's my fault,
responsiveLevels: {
small: {
levelWidth: 800,
tickSize: 127,
fillTicks: true,
// rowHeight: 40
},
normal: {
levelWidth: '*',
tickSize: 150,
fillTicks: false,
//rowHeight: 50
}
},
I 've merged multiples examples. Now it's ok. I've forced in the responsiveLevels object.
Best regards,
And really congratulation for your product and the documentation.