From e99637ef4c03a438db7d0372aaf650ac9920641a Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 13 Sep 2020 01:17:45 -0400 Subject: 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. --- src/client/util/CurrentUserUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(["dropAction"]), title: "header view", icon: "window-maximize", system: true }); -- cgit v1.2.3-70-g09d2