Premium support for our pure JavaScript UI components


Post by serhii.krut »

Hi,

I use eventRenderer for customizing events appearance. Default height for all events is 50 pixels. But if they overlap for the same resource I need render half height events - 25px for overlapping events. So, when I set height = 25 everything renders as expected but whole resource row. It has the same height like all event have 50px and margins between bars are increased.

How could I force scheduler to consider real heights of my bars when resource row height calculates?


Post by mats »

Could you show us your desired appearance?


Post by serhii.krut »

image (2).png
image (2).png (47.56 KiB) Viewed 3028 times

Something like this, pay attention for narrow events. They both rendered in the same height row.


Post by mats »

You want fixed row height? Please try the different layouts supported here https://www.bryntum.com/examples/scheduler/layouts/


Post by serhii.krut »

I don't need fixed height. There could be more than 2 overlapping events. I use stack layout and it's ok for me. But when I set event height 25px I just get smaller event and huge margin between them. How to set 2px margin and reduce whole row height to fit all the event with margins?

Untitled.png
Untitled.png (17.34 KiB) Viewed 3027 times

Post by saki »

It could be caused by higher value of barMargin.

Post please a testcase that we could run, if still in troubles. Custom renderer and css may have influence too.


Post by serhii.krut »

Untitled1.png
Untitled1.png (20.82 KiB) Viewed 3014 times

Here I've tried to make such example, you can see enormous margins between yellow and red events. Also take a look to my sources in attached zip file.

Attachments
dynamicEventsTest.zip
(1.81 KiB) Downloaded 155 times

Post by saki »

As I can see you set the event height in renderer, however, but scheduler currently does not support variable or automatic row height adjustment based on the cumulative event heights.

We have feature request https://github.com/bryntum/support/issues/1860 related to it.


Post by serhii.krut »

Thank you for your answers guys.

Are there any plans to include #1860 request to nearest update?


Post by fabio.mazza »

Hi serhii.krut,

We have no plans to include https://github.com/bryntum/support/issues/1860 to next releases.

But if you prefer, there is feature sponsorship program as part of our services if you need urgently: https://www.bryntum.com/services/

Best regards,
Fabio


Post Reply