fix(Panes): pane resizing issue
fix(Panes): pane resizing issue fix(panes): added ternary to redux action fix(Panes): removed console log fix(Panes): Updated leftBound with lodash condition fix(Panes): Refactored condition for leftPane
This commit is contained in:
		
				
					committed by
					
						
						Berkeley Martinez
					
				
			
			
				
	
			
			
			
						parent
						
							8319472d5a
						
					
				
				
					commit
					b44b582f35
				
			@@ -166,7 +166,9 @@ export default function createPanesAspects({ createPanesMap }) {
 | 
				
			|||||||
          const leftPane =
 | 
					          const leftPane =
 | 
				
			||||||
            state.panesByName[getPaneName(state.panes, paneIndex - 1)] || {};
 | 
					            state.panesByName[getPaneName(state.panes, paneIndex - 1)] || {};
 | 
				
			||||||
          const rightBound = (rightPane.dividerLeft || 100) - dividerBuffer;
 | 
					          const rightBound = (rightPane.dividerLeft || 100) - dividerBuffer;
 | 
				
			||||||
          const leftBound = (leftPane.dividerLeft || 0) + dividerBuffer;
 | 
					          const leftBound =
 | 
				
			||||||
 | 
					          (leftPane.isHidden || typeof leftPane.isHidden === 'undefined') ?
 | 
				
			||||||
 | 
					          dividerBuffer : (leftPane.dividerLeft + dividerBuffer);
 | 
				
			||||||
          const newPosition = _.clamp(
 | 
					          const newPosition = _.clamp(
 | 
				
			||||||
            (clientX / width) * 100,
 | 
					            (clientX / width) * 100,
 | 
				
			||||||
            leftBound,
 | 
					            leftBound,
 | 
				
			||||||
@@ -205,7 +207,7 @@ export default function createPanesAspects({ createPanesMap }) {
 | 
				
			|||||||
          isMapPaneHidden: !state.isMapPaneHidden
 | 
					          isMapPaneHidden: !state.isMapPaneHidden
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
      defaultState,
 | 
					      defaultState
 | 
				
			||||||
    ),
 | 
					    ),
 | 
				
			||||||
    function metaReducer(state = defaultState, action) {
 | 
					    function metaReducer(state = defaultState, action) {
 | 
				
			||||||
      if (action.meta && action.meta.panesMap) {
 | 
					      if (action.meta && action.meta.panesMap) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user