Our pure JavaScript Scheduler component


Post by Cr3aHal0 »

Hi gentlemen !

I was looking for some way to visually constrain the schedulerTooltip to the viewport and after some research into the API and the source code of this feature, it seems that this behaviour has been made set that way on purpose.

in lib\Scheduler\feature\ScheduleTooltip.js around line 65 :
        const tip = me.hoverTip = new Tooltip({
            // ...
            // Do not constrain at all, want it to be able to go outside of the viewport to not get in the way
            constrainTo    : null,
            // ...
        })
I just would like to know if you have already planed to make it configurable in future releases ? because currently, hovering the very right side of a 100%-width scheduler results in the tooltip being cut or barely visible ^^
bryntum.png
bryntum.png (19 KiB) Viewed 1068 times
Thanks in advance and have a good day

Max

Post by Animal »

Right now, you cannot configure this through the Scheduler's features.scheduleTooltip config object. I'll make a ticket to fix that.

You can however get a reference to the tooltip and change its configuration after the Scheduler is instanced:
scheduler.features.scheduleTooltip.hoverTip.constrainTo = document;

Post by Animal »


Post by Cr3aHal0 »

Thank you Animal for the fast reply! Will definitely do that until your ticket is closed, many thanks !

Post Reply