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