Skip to content

Commit fc5d375

Browse files
committed
config-ip-filter: Keep infopanel dragbar from dragging into the tabpenl
1 parent c619a34 commit fc5d375

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/app/view/netcreate/components/InfoPanel.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ class InfoPanel extends UNISYS.Component {
106106
}
107107
handleDrag(e) {
108108
e.stopPropagation();
109-
let top = e.clientY + this.state.draggerMouseOffsetY;
109+
// limit to 80 to keep from dragging up past the tabpanel
110+
// 80 = navbar + tabpanel height
111+
let top = Math.max(80, e.clientY + this.state.draggerMouseOffsetY);
110112
this.setState({
111113
tabpanelHeight: (top - this.state.tabpanelTop - 40) + 'px',
112114
tableHeight: (top - this.state.tabpanelTop) + 'px',

0 commit comments

Comments
 (0)