aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-02-23 10:12:39 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-02-23 10:12:39 -0500
commit96327e5b393ba967a05b6c985a2641e3705c9e2c (patch)
treeff1dffa7b3e7b86f9c702e8a4cb448bcabd6af91 /src/client/documents/Documents.ts
parent80c51c0dac6fcdba96d811adc4a3877134f58b03 (diff)
added an overlay layer to collections... but it blocks events. not sure how to fix.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 6ec5aa711..e0d44e535 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -112,6 +112,12 @@ export namespace Documents {
+ FormattedTextBox.LayoutString("CaptionKey") +
`</div>
</div>` };
+ function OverlayLayoutString() {
+ return `<div style="position:absolute; height:100%; width:100%">
+ <div style="position:absolute; max-height:10%; width:100%; min-height:10%; overflow:scroll;text-align:center;bottom:0;">`
+ + FormattedTextBox.LayoutString("CaptionKey") +
+ `</div>
+ </div>` };
export function ImageDocument(url: string, options: DocumentOptions = {}): Document {
let doc = GetImagePrototype().MakeDelegate();
@@ -119,6 +125,7 @@ export namespace Documents {
doc.Set(KeyStore.Data, new ImageField(new URL(url)));
doc.Set(KeyStore.Caption, new TextField("my caption..."));
doc.Set(KeyStore.BackgroundLayout, new TextField(CaptionLayoutString()));
+ //doc.Set(KeyStore.OverlayLayout, new TextField(OverlayLayoutString()));
doc.Set(KeyStore.LayoutKeys, new ListField([KeyStore.Data, KeyStore.Annotations, KeyStore.Caption]));
let annotation = Documents.TextDocument({ title: "hello" });