diff --git a/page/index.css b/page/index.css index 2b2d17cc..b20dbb25 100644 --- a/page/index.css +++ b/page/index.css @@ -49,6 +49,7 @@ fieldset.plugin>div.status { border-top:1px solid darkcyan; } fieldset.story>div.status { border-top:1px solid darkcyan; } fieldset.panel>div.status { display:none; } fieldset.panel>legend { display:none; } +fieldset.contexts { position:fixed; } fieldset.output { padding:0; margin:0; } fieldset.output>legend { display:none; } fieldset.output>form.option { display:none; } diff --git a/publish/chrome/contexts.js b/publish/chrome/contexts.js index 1a64395b..58f30b4b 100644 --- a/publish/chrome/contexts.js +++ b/publish/chrome/contexts.js @@ -59,6 +59,9 @@ setTimeout(function() { Volcanos({ can.page.style(can, sub._output, html.MAX_HEIGHT, window.innerHeight-sub._target.offsetTop-2*html.ACTION_HEIGHT, html.MAX_WIDTH, window.innerWidth-sub._target.offsetLeft) can.base.isFunc(cb) && cb(msg) }) } + sub._target.onclick = function() { + can.page.Select(can, document.body, can.page.Keys("div.carte.float"), function(target) { can.page.Remove(can, target) }) + } can.onmotion.move(can, sub._target, {left: msg.Option(html.LEFT), top: msg.Option(html.TOP), right: msg.Option(html.RIGHT), bottom: msg.Option(html.BOTTOM)}) sub._legend.onclick = function(event) { can.onmotion.toggle(can, sub._option), can.onmotion.toggle(can, sub._action), can.onmotion.toggle(can, sub._output), can.onmotion.toggle(can, sub._status) } msg.Option("selection")? can.onengine.listen(can, "onselection", function() { sub.Option(msg.Option("selection"), window.getSelection()), sub.Update() }): sub._legend.onclick()