grid css transforms: minor refactor (#10128)

This commit is contained in:
Alexander Zobnin 2017-12-08 10:43:47 +03:00 committed by Torkel Ödegaard
parent 3de17ecda7
commit cd3cf5d19b
2 changed files with 4 additions and 6 deletions

View File

@ -107,15 +107,14 @@ function panelHeader($compile) {
}
});
elem.find('.panel-menu-toggle').click((evt) => {
console.log(evt);
togglePanelState();
elem.find('.panel-menu-toggle').click(() => {
togglePanelStackPosition();
});
function togglePanelMenu(e) {
if (!isDragged) {
e.stopPropagation();
togglePanelState();
togglePanelStackPosition();
elem.find('[data-toggle=dropdown]').dropdown('toggle');
}
}
@ -124,7 +123,7 @@ function panelHeader($compile) {
* Hack for adding special class 'dropdown-menu-open' to the panel.
* This class sets z-index for panel and prevents menu overlapping.
*/
function togglePanelState() {
function togglePanelStackPosition() {
const menuOpenClass = 'dropdown-menu-open';
const panelGridClass = '.react-grid-item.panel';

View File

@ -53,4 +53,3 @@
.react-grid-item.react-draggable-dragging.panel {
z-index: $zindex-dropdown;
}