Clean-up
This commit is contained in:
parent
87d229a534
commit
f99835fcac
@ -403,10 +403,7 @@ class BBTimeline {
|
|||||||
|
|
||||||
calcXAxisHeight() {
|
calcXAxisHeight() {
|
||||||
const a = this;
|
const a = this;
|
||||||
|
|
||||||
console.log(a.Axis.Font);
|
|
||||||
const labelSize = a.measureText(a.Axis.Font, "0");
|
const labelSize = a.measureText(a.Axis.Font, "0");
|
||||||
|
|
||||||
const result = labelSize.Height + a.Axis.LabelSpacing + (a.Axis.X.DayLineHeight * 2);
|
const result = labelSize.Height + a.Axis.LabelSpacing + (a.Axis.X.DayLineHeight * 2);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<button onclick="ToggleDebug()">Toggle Debug</button>
|
<button onclick="ToggleDebug()">Toggle Debug</button>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<button onclick="LoadToday()">Show Today</button>
|
<button onclick="LoadToday()">Show Start Date</button>
|
||||||
<button onclick="LoadPrevious()">Show Previous Month</button>
|
<button onclick="LoadPrevious()">Show Previous Month</button>
|
||||||
<button onclick="LoadNext()">Show Next Month</button>
|
<button onclick="LoadNext()">Show Next Month</button>
|
||||||
</p>
|
</p>
|
||||||
@ -103,7 +103,7 @@ function ToggleDebug()
|
|||||||
|
|
||||||
function LoadToday()
|
function LoadToday()
|
||||||
{
|
{
|
||||||
const date = timeline1.DateToString(new Date(), "yyyy-MM-dd");
|
// const date = timeline1.DateToString(new Date(), "yyyy-MM-dd");
|
||||||
|
|
||||||
timeline1.Load("2023-10-01");
|
timeline1.Load("2023-10-01");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user