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

Day pilot scroll displaying always

Asked by Maheswar
8 years ago.

Hi,

I am configured daypilot height as

context.schedulerInstance.heightSpec = "Parent100Pct";
context.schedulerInstance.cellWidthSpec = 'Auto';

But the scroll(horizontal) is showing always.Please find the attachment.

Even i tried with this also ,still same issue.
context.schedulerInstance.cellWidthSpec = 'Fixed';
context.schedulerInstance.cellWidth = 10.1;

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

Are you using the latest DayPilot Pro version?

Comment posted by Maheswar
8 years ago.

Yes Version: 1840

Answer posted by Dan Letecky [DayPilot]
8 years ago.

Unfortunately I'm not able to reproduce the issue. If I add .cellWidthSpec = "Auto" to the following demo the horizontal scrollbar disappears:

http://javascript.daypilot.org/sandbox/scheduler/height100.html

Comment posted by Maheswar Reddy
8 years ago.

if use cellWidthSpec = 'Auto' when minimize the browser,the width is decreasing(too small).Even will you please check this also
dp.heightSpec = "Parent100Pct";

it is not filling resource height auto.

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

> if use cellWidthSpec = 'Auto' when minimize the browser,the width is decreasing(too small)

1. You can specify the minimum cell width using .cellWidthMin property (in pixels). If the automatically calculated cell width is smaller, the .cellWithMin value is used instead (and a horizontal scrollbar will be displayed).

> dp.heightSpec = "Parent100Pct";
> it is not filling resource height auto.

The purpose of .heightSpec = "Parent100Pct" is not to adjust the row height. It sets the total height of the control (similar to .width = "100%"). Depending on the number of rows, this will either show a blank space below the last row or a vertical scrollbar.

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