From 7dacb7c0a37b1058ad81d3f1ad089fdf6c39811b Mon Sep 17 00:00:00 2001 From: NinaR Date: Mon, 18 Jul 2022 10:46:34 +0200 Subject: [PATCH] initial duration --- .../instance/defaultEndTime.st | 2 +- .../methodProperties.json | 2 +- .../AnimationsEditorTimeline.class/instance/minimumExtent.st | 4 ++++ .../AnimationsEditorTimeline.class/instance/updateExtent.st | 2 +- .../AnimationsEditorTimeline.class/methodProperties.json | 3 ++- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/minimumExtent.st diff --git a/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/defaultEndTime.st b/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/defaultEndTime.st index bb7cff3a..f5b818fb 100644 --- a/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/defaultEndTime.st +++ b/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/defaultEndTime.st @@ -1,3 +1,3 @@ defaults defaultEndTime - ^ 1000. \ No newline at end of file + ^ 0. \ No newline at end of file diff --git a/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/methodProperties.json b/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/methodProperties.json index fdc37487..5c003f8e 100644 --- a/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/methodProperties.json +++ b/packages/AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/methodProperties.json @@ -12,7 +12,7 @@ "buildStartInputWith:" : "FH 8/1/2021 19:30", "buildUIWith:" : "FH 8/1/2021 19:30", "canRenderUI" : "DM 8/6/2020 10:11", - "defaultEndTime" : "mjs 8/1/2021 13:45", + "defaultEndTime" : "NR 7/18/2022 10:28", "defaultStartTime" : "DM 8/6/2020 10:37", "endTime" : "FH 8/1/2021 19:29", "endTime:" : "FH 8/1/2021 19:29", diff --git a/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/minimumExtent.st b/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/minimumExtent.st new file mode 100644 index 00000000..6f9b1212 --- /dev/null +++ b/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/minimumExtent.st @@ -0,0 +1,4 @@ +constants +minimumExtent + + ^ 1000. \ No newline at end of file diff --git a/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateExtent.st b/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateExtent.st index db13d8b7..c751dc7b 100644 --- a/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateExtent.st +++ b/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateExtent.st @@ -3,7 +3,7 @@ updateExtent | normalHeight fullWidth | normalHeight := self scrollPane height - self borderWidth. - fullWidth := self endTime + self startMargin + self endMargin. + fullWidth := (self endTime max: self minimumExtent) + self startMargin + self endMargin. self width: fullWidth. fullWidth > self scrollPane width ifTrue: [self height: normalHeight - self scrollPane scrollBarThickness.] diff --git a/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/methodProperties.json b/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/methodProperties.json index 1b311fdf..069f43ae 100644 --- a/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/methodProperties.json +++ b/packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/methodProperties.json @@ -16,6 +16,7 @@ "initialExtent" : "MH 8/1/2021 18:57", "initialize" : "SG 5/21/2022 15:43", "initializeStartEndTime" : "mjs 7/31/2021 17:38", + "minimumExtent" : "NR 7/18/2022 10:43", "movingLine" : "SG 5/21/2022 15:38", "movingLine:" : "SG 5/21/2022 15:38", "property" : "MH 8/1/2021 18:57", @@ -29,5 +30,5 @@ "timebar:" : "MH 8/1/2021 18:57", "trackHeight" : "MH 8/1/2021 18:57", "update:" : "SG 5/23/2022 18:40", - "updateExtent" : "MH 8/1/2021 18:58", + "updateExtent" : "NR 7/18/2022 10:41", "updateStartEndProperty" : "6/17/2022 14:09:28" } }