Skip to content

Commit dc634aa

Browse files
committed
Merge branch '9.0' of https://git.webix.io/Servers/gantt-docs into 9.0
2 parents 90265bb + ea48a40 commit dc634aa

File tree

7 files changed

+41
-24
lines changed

7 files changed

+41
-24
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
bar_height_padding
2+
=============
3+
4+
@short: adjusts the padding around task bars in the timeline when `bar_height` is set to "full"
5+
6+
@type: number
7+
@default: 9
8+
@example:
9+
gantt.config.bar_height_padding = 5;
10+
gantt.init("gantt_here");
11+
12+
@template: api_config
13+
@descr:
14+
The `bar_height_padding` config defines the vertical padding for task bars in the timeline when `gantt.config.bar_height` is set to "full". The height of a task bar is calculated as `gantt.config.row_height - gantt.config.bar_height_padding`.
15+
16+
- Setting this config to `0` will make the task bars occupy the full height of the row.
17+
- Increasing the value adds more space above and below the bars.
18+
19+
The example below shows a smaller padding value, which leaves less space around the task bars:
20+
21+
~~~js
22+
gantt.config.bar_height_padding = 3;
23+
~~~
24+
25+
<img src="api/bar_height_padding_small.png">
26+
27+
In this example, a larger padding value leaves more empty space above and below the task bars:
28+
29+
~~~js
30+
gantt.config.bar_height_padding = 14;
31+
~~~
32+
33+
<img src="api/bar_height_padding_large.png">
34+
35+
@relatedapi:
36+
api/gantt_bar_height_config.md
37+
api/gantt_row_height_config.md

data/api/gantt_task_height_offset_config.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

data/api/refs/gantt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Gantt API
1616
- api/gantt_addtask.md - adds a new task
1717
- api/gantt_addtasklayer.md - displays an additional layer with custom elements for a task in the timeline area
1818
- api/gantt_adjusttaskheightforbaselines.md - adjusts the task's row height for proper display of baseline elements
19+
- api/gantt_adjusttaskheightforbaselines.md - adjusts the task's row height for proper display of baseline elements
1920
- api/gantt_alert.md - calls an alert message box
2021
- api/gantt_assert.md - if the specified expression is false, an errorMessage is shown in the red popup at the top right corner of the screen
2122
- api/gantt_attachevent.md - attaches the handler to an inner event of dhtmlxGantt
@@ -259,7 +260,6 @@ Gantt API
259260
- api/gantt_onbeforerowdragmove_event.md - fires before a row of the grid is dragged vertically to a different position
260261
- api/gantt_onbeforerowresize_event.md - fires before the user starts to resize the row height by drag-and-drop
261262
- api/gantt_onbeforerowresizeend_event.md - fires before resizing of the row height is completed
262-
- api/gantt_onbeforeselect_event.md -
263263
- api/gantt_onbeforesplittaskdisplay_event.md - fires before a part of the split task is displayed on the Gantt chart
264264
- api/gantt_onbeforetaskadd_event.md - fires before a new task is added to the Gantt chart
265265
- api/gantt_onbeforetaskautoschedule_event.md - fires for each task which is rescheduled
@@ -351,6 +351,7 @@ Gantt API
351351
- api/gantt_autosize_config.md - forces the Gantt chart to automatically change its size to show all tasks without scrolling
352352
- api/gantt_autosize_min_width_config.md - sets the minimum width (in pixels) that the Gantt chart can take in the horizontal 'autosize' mode
353353
- api/gantt_bar_height_config.md - sets the height of task bars in the timeline area
354+
- api/gantt_bar_height_padding_config.md - adjusts the padding around task bars in the timeline when `bar_height` is set to "full"
354355
- api/gantt_baselines_config.md - configures the functionality of baselines in the Gantt chart
355356
- api/gantt_branch_loading_config.md - enables dynamic loading in the Gantt chart
356357
- api/gantt_branch_loading_property_config.md - specifies that the task has children that are not yet loaded from the backend
@@ -483,7 +484,6 @@ Gantt API
483484
- api/gantt_task_date_config.md - sets the format of the date label in the 'Time period' section of the lightbox
484485
- api/gantt_task_grid_row_resizer_attribute_config.md - sets the name of the attribute of the resizer's DOM element of the grid row. The attribute presents the row's index
485486
- api/gantt_task_height_config.md - sets the height of task bars in the timeline area
486-
- api/gantt_task_height_offset_config.md -
487487
- api/gantt_task_scroll_offset_config.md - sets the offset (in pixels) of the nearest task from the left border in the timeline
488488
- api/gantt_time_picker_config.md - sets the format of the time drop-down selector in the lightbox
489489
- api/gantt_time_step_config.md - sets the minimum step (in minutes) for the task's time values

data/api/refs/gantt_events.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Events
4545
- api/gantt_onbeforerowdragmove_event.md - fires before a row of the grid is dragged vertically to a different position
4646
- api/gantt_onbeforerowresize_event.md - fires before the user starts to resize the row height by drag-and-drop
4747
- api/gantt_onbeforerowresizeend_event.md - fires before resizing of the row height is completed
48-
- api/gantt_onbeforeselect_event.md -
4948
- api/gantt_onbeforesplittaskdisplay_event.md - fires before a part of the split task is displayed on the Gantt chart
5049
- api/gantt_onbeforetaskadd_event.md - fires before a new task is added to the Gantt chart
5150
- api/gantt_onbeforetaskautoschedule_event.md - fires for each task which is rescheduled
@@ -161,7 +160,6 @@ Events
161160
- api/gantt_onbeforerowdragmove_event.md
162161
- api/gantt_onbeforerowresize_event.md
163162
- api/gantt_onbeforerowresizeend_event.md
164-
- api/gantt_onbeforeselect_event.md
165163
- api/gantt_onbeforesplittaskdisplay_event.md
166164
- api/gantt_onbeforetaskadd_event.md
167165
- api/gantt_onbeforetaskautoschedule_event.md

data/api/refs/gantt_props.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Properties
1818
- api/gantt_autosize_config.md - forces the Gantt chart to automatically change its size to show all tasks without scrolling
1919
- api/gantt_autosize_min_width_config.md - sets the minimum width (in pixels) that the Gantt chart can take in the horizontal 'autosize' mode
2020
- api/gantt_bar_height_config.md - sets the height of task bars in the timeline area
21+
- api/gantt_bar_height_padding_config.md - adjusts the padding around task bars in the timeline when `bar_height` is set to "full"
2122
- api/gantt_baselines_config.md - configures the functionality of baselines in the Gantt chart
2223
- api/gantt_branch_loading_config.md - enables dynamic loading in the Gantt chart
2324
- api/gantt_branch_loading_property_config.md - specifies that the task has children that are not yet loaded from the backend
@@ -150,7 +151,6 @@ Properties
150151
- api/gantt_task_date_config.md - sets the format of the date label in the 'Time period' section of the lightbox
151152
- api/gantt_task_grid_row_resizer_attribute_config.md - sets the name of the attribute of the resizer's DOM element of the grid row. The attribute presents the row's index
152153
- api/gantt_task_height_config.md - sets the height of task bars in the timeline area
153-
- api/gantt_task_height_offset_config.md -
154154
- api/gantt_task_scroll_offset_config.md - sets the offset (in pixels) of the nearest task from the left border in the timeline
155155
- api/gantt_time_picker_config.md - sets the format of the time drop-down selector in the lightbox
156156
- api/gantt_time_step_config.md - sets the minimum step (in minutes) for the task's time values
@@ -192,6 +192,7 @@ Properties
192192
- api/gantt_autosize_config.md
193193
- api/gantt_autosize_min_width_config.md
194194
- api/gantt_bar_height_config.md
195+
- api/gantt_bar_height_padding_config.md
195196
- api/gantt_baselines_config.md
196197
- api/gantt_branch_loading_config.md
197198
- api/gantt_branch_loading_property_config.md
@@ -324,7 +325,6 @@ Properties
324325
- api/gantt_task_date_config.md
325326
- api/gantt_task_grid_row_resizer_attribute_config.md
326327
- api/gantt_task_height_config.md
327-
- api/gantt_task_height_offset_config.md
328328
- api/gantt_task_scroll_offset_config.md
329329
- api/gantt_time_picker_config.md
330330
- api/gantt_time_step_config.md
21.9 KB
Loading
22.4 KB
Loading

0 commit comments

Comments
 (0)