Skip to content

Commit 7658148

Browse files
committed
add jquery ui for resize function
1 parent d7e5476 commit 7658148

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"dependencies": {
2929
"bootstrap": "~3.2.0",
3030
"Inspector-JSON": "SparkartGroupInc/Inspector-JSON#e6bec9fe4cc7551cd46f44bafed6891620a5e47d",
31-
"bootstrap-vertical-tabs": "~1.1.0"
31+
"bootstrap-vertical-tabs": "~1.1.0",
32+
"jquery.ui": "~1.11.0"
3233
},
3334
"resolutions": {
3435
"bootstrap": "~3.2.0"

views/devpanel.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,14 @@ pre.scroll-panel {
6565
.sidetab-column {
6666
height: 100%;
6767
padding: 0;
68-
position: static;
6968
border-right: 1px solid #a3a3a3;
7069
background: #e8e8e8;
7170
width: 200px;
71+
max-width: 90%;
72+
}
73+
74+
.ui-resizable-e {
75+
cursor: ew-resize;
7276
}
7377

7478
.nav-tabs>li>a {

views/devpanel.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<!doctype html>
22
<html>
33
<head>
4+
5+
<link rel="stylesheet" href="../bower_components/jquery-ui/themes/smoothness/jquery-ui.css">
6+
47
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
8+
<script src="../bower_components/jquery-ui/jquery-ui.js"></script>
59
<script src="../node_modules/socket.io-client/socket.io.js"></script>
610
<script src="devpanel.js"></script>
711
<script src="../bower_components/Inspector-JSON/inspector-json.js"></script>
@@ -13,7 +17,7 @@
1317
<link href="devpanel.css" media="all" rel="stylesheet" type="text/css">
1418
</head>
1519
<body>
16-
<div class="sidetab-column col-xs-3">
20+
<div class="sidetab-column col-xs-3" id="sidePanel">
1721
<ul class="nav nav-tabs tabs-left" id="panelTabs">
1822
<li class="active"><a href="#context" data-toggle="tab"><span class="icon-json"></span> Context</a></li>
1923
<li><a href="#logs" data-toggle="tab"><span class="icon-console"></span> Logs</a></li>

views/devpanel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ function clearLog() {
107107
window.onload = function() {
108108
var clearButton = document.querySelector('#logclear');
109109
clearButton.addEventListener('click', clearLog, false);
110+
$('#sidePanel').resizable({ minWidth: 120, handles: 'e'});
110111
};

0 commit comments

Comments
 (0)