diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-07-24 00:35:29 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-07-24 00:35:29 -0400 |
commit | 5bc848bde4f37ec3dc812b22d81ded16f2a86f93 (patch) | |
tree | 81602e12373661413c5ac3745a1c8ff4300e5a15 /src/new_fields/Doc.ts | |
parent | 189cf09a7c81e8b4b2f5313cf093097cc9eba03e (diff) |
fixed reordering tree view items. restored double-click to view detail view.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 2a697e621..a1241aac3 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -463,4 +463,12 @@ export namespace Doc { d.layout !== miniLayout ? miniLayout && (d.layout = d.miniLayout) : detailLayout && (d.layout = detailLayout); if (d.layout === detailLayout) Doc.GetProto(d).nativeWidth = Doc.GetProto(d).nativeHeight = undefined; } + export async function UseDetailLayout(d: Doc) { + let miniLayout = await PromiseValue(d.miniLayout); + let detailLayout = await PromiseValue(d.detailedLayout); + if (miniLayout && d.layout === miniLayout && detailLayout) { + d.layout = detailLayout; + Doc.GetProto(d).nativeWidth = Doc.GetProto(d).nativeHeight = undefined; + } + } }
\ No newline at end of file |