gantt-task-react-v 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10829,10 +10829,17 @@ const TaskListInner = ({
|
|
|
10829
10829
|
ref: taskListContainerRef,
|
|
10830
10830
|
className: styles$d.horizontalContainer,
|
|
10831
10831
|
style: {
|
|
10832
|
-
height:
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10832
|
+
// visible height: clamp between minimum rows height and ganttFullHeight,
|
|
10833
|
+
// prefer explicit numeric ganttHeight when provided
|
|
10834
|
+
height: (() => {
|
|
10835
|
+
const minRowsHeight = distances.minimumRowDisplayed * distances.rowHeight;
|
|
10836
|
+
const resolved = typeof ganttHeight === "number" ? ganttHeight : void 0;
|
|
10837
|
+
const visible = Math.max(
|
|
10838
|
+
minRowsHeight,
|
|
10839
|
+
Math.min(ganttFullHeight, resolved ?? ganttFullHeight)
|
|
10840
|
+
);
|
|
10841
|
+
return visible;
|
|
10842
|
+
})(),
|
|
10836
10843
|
width: taskListWidth
|
|
10837
10844
|
},
|
|
10838
10845
|
children: /* @__PURE__ */ jsx(
|
|
@@ -10846,10 +10846,17 @@
|
|
|
10846
10846
|
ref: taskListContainerRef,
|
|
10847
10847
|
className: styles$d.horizontalContainer,
|
|
10848
10848
|
style: {
|
|
10849
|
-
height:
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10849
|
+
// visible height: clamp between minimum rows height and ganttFullHeight,
|
|
10850
|
+
// prefer explicit numeric ganttHeight when provided
|
|
10851
|
+
height: (() => {
|
|
10852
|
+
const minRowsHeight = distances.minimumRowDisplayed * distances.rowHeight;
|
|
10853
|
+
const resolved = typeof ganttHeight === "number" ? ganttHeight : void 0;
|
|
10854
|
+
const visible = Math.max(
|
|
10855
|
+
minRowsHeight,
|
|
10856
|
+
Math.min(ganttFullHeight, resolved ?? ganttFullHeight)
|
|
10857
|
+
);
|
|
10858
|
+
return visible;
|
|
10859
|
+
})(),
|
|
10853
10860
|
width: taskListWidth
|
|
10854
10861
|
},
|
|
10855
10862
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
package/package.json
CHANGED