aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-13 01:17:45 -0400
committerbobzel <zzzman@gmail.com>2020-09-13 01:17:45 -0400
commite99637ef4c03a438db7d0372aaf650ac9920641a (patch)
tree2e1d2a40b95d3b23a2d83ec00df5b224ade1df38 /src
parent0ddb1a572d3579469bc08469d43c6fcdb114f901 (diff)
fixed headerView so that it makes delegates on drag instead of copies. this fixes bugs when dragging out a header view, customizing, dragging ti back in as a new template, then dragigng out instances -- they used to all have synchronized heights.
Diffstat (limited to 'src')
-rw-r--r--src/client/util/CurrentUserUtils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index a63a0ba08..a0883fb8a 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -96,7 +96,7 @@ export class CurrentUserUtils {
(headerTemplate.proto as Doc).isTemplateDoc = makeTemplate(headerTemplate.proto as Doc, true, "headerView");
doc["template-button-header"] = CurrentUserUtils.ficon({
- onDragStart: ScriptField.MakeFunction('copyDragFactory(this.dragFactory)'),
+ onDragStart: ScriptField.MakeFunction('makeDelegate(this.dragFactory)'),
dragFactory: new PrefetchProxy(headerTemplate) as any as Doc,
removeDropProperties: new List<string>(["dropAction"]), title: "header view", icon: "window-maximize", system: true
});