search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to leave blank area in time header when group is collapsed

Asked by Sergey
6 years ago.

Hello, I have only one group with many rows in my daypilot grid and when the group is expanded I have the following blank area (see screenshot1.jpg). However, when the group becomes collapsed I don't see this area(see screenshot2.jpg). Is it possible to leave it and do not remove?

Comment posted by Sergey
6 years ago.

Sorry, I mean is it possible to leave this blank area when the group is collapsed?

Comment posted by Dan Letecky [DayPilot]
6 years ago.

At this moment, it's not possible. The area is added only when the vertical scrollbar is visible on the grid.

Answer posted by Sergey
6 years ago.

I made a wrapper for daypilot and override method _getScrollableWidth.

if (innerHeight > height && !autoHeight && this.reserveSpaceForScrollBar === undefined) || this.reserveSpaceForScrollBar) {
scrollBarWidth = DayPilot.swa();
}

var full = total - header - manualAdjustment - scrollBarWidth;
return full;

this.reserveSpaceForScrollBar - flag which I set when I need to have this blank space for the header.

Comment posted by Dan Letecky [DayPilot]
6 years ago.

Great, thanks for posting your solution!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.