More fixes for TCR (#2255)

* Open in new tab
* Fix splitter resizing error, and css background issue
* Prevent new line on enter key press when editing name in object browse bar. Update domainObject name on enter key press in Object Browse Bar
* Flexible layout should react to composition remove, and fix delete container
* Render a drag ghost when dragging frame items in flexible layout
* Use composition.on add to add new frames
This commit is contained in:
Deep Tailor
2019-01-29 14:55:38 -08:00
committed by Andrew Henry
parent 1dc1cc6c24
commit e254fafb5c
10 changed files with 109 additions and 35 deletions

View File

@ -14,7 +14,7 @@
</div>
<div class="hide-menu hidden">
<div class="menu-element context-menu-wrapper mobile-disable-select">
<div class="menu context-menu">
<div class="c-menu">
<ul>
<li v-for="action in actions"
:key="action.name"

View File

@ -254,13 +254,14 @@ function (
// Remove the context menu
function dismiss() {
container.find('.hide-menu').append(menu);
body.off(initiatingEvent, dismiss);
menu.off(initiatingEvent, menuClickHandler);
body.off(initiatingEvent, menuClickHandler);
dismissExistingMenu = undefined;
}
function menuClickHandler(e) {
e.stopPropagation();
window.setTimeout(() => {
dismiss();
}, 100);
}
// Dismiss any menu which was already showing
@ -276,11 +277,7 @@ function (
marginY: -50
});
// Stop propagation so that clicks or touches on the menu do not close the menu
menu.on(initiatingEvent, menuClickHandler);
body.on(initiatingEvent, dismiss);
body.on(initiatingEvent, menuClickHandler);
};
EmbedController.prototype.exposedData = function () {