Commit cd3cf5d1 by Alexander Zobnin Committed by Torkel Ödegaard

grid css transforms: minor refactor (#10128)

parent 3de17ecd
...@@ -107,15 +107,14 @@ function panelHeader($compile) { ...@@ -107,15 +107,14 @@ function panelHeader($compile) {
} }
}); });
elem.find('.panel-menu-toggle').click((evt) => { elem.find('.panel-menu-toggle').click(() => {
console.log(evt); togglePanelStackPosition();
togglePanelState();
}); });
function togglePanelMenu(e) { function togglePanelMenu(e) {
if (!isDragged) { if (!isDragged) {
e.stopPropagation(); e.stopPropagation();
togglePanelState(); togglePanelStackPosition();
elem.find('[data-toggle=dropdown]').dropdown('toggle'); elem.find('[data-toggle=dropdown]').dropdown('toggle');
} }
} }
...@@ -124,7 +123,7 @@ function panelHeader($compile) { ...@@ -124,7 +123,7 @@ function panelHeader($compile) {
* Hack for adding special class 'dropdown-menu-open' to the panel. * Hack for adding special class 'dropdown-menu-open' to the panel.
* This class sets z-index for panel and prevents menu overlapping. * This class sets z-index for panel and prevents menu overlapping.
*/ */
function togglePanelState() { function togglePanelStackPosition() {
const menuOpenClass = 'dropdown-menu-open'; const menuOpenClass = 'dropdown-menu-open';
const panelGridClass = '.react-grid-item.panel'; const panelGridClass = '.react-grid-item.panel';
......
...@@ -53,4 +53,3 @@ ...@@ -53,4 +53,3 @@
.react-grid-item.react-draggable-dragging.panel { .react-grid-item.react-draggable-dragging.panel {
z-index: $zindex-dropdown; z-index: $zindex-dropdown;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment