Skip to content

Commit 1bfcdf2

Browse files
style fix
1 parent e86de0c commit 1bfcdf2

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CacheUMLExplorer",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "An UML Class explorer for InterSystems Caché",
55
"directories": {
66
"test": "test"

web/css/interface.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ html, body {
1717
float: left;
1818
width: 200px;
1919
height: 100%;
20+
box-shadow: 0 0 0 1px lightgray;
2021
}
2122

2223
.ui-mainBlock {

web/css/treeView.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
display: block;
44
font-size: 16px;
55
height: 100%;
6-
border-right: 1px solid lightgray;
76
overflow: auto;
87
box-sizing: border-box;
98
padding-top: 24px;

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<body onload="cue = new CacheUMLExplorer(document.getElementById('treeView'), document.getElementById('svgContainer'))">
2929
<div class="ui-body" id="ui-body">
3030
<div class="ui-sideBlock">
31-
<div class="ui-sideSearchBlock">
31+
<div class="ui-sideSearchBlock" id="searchBlock">
3232
<input type="search" id="classTreeSearch" placeholder="Search..."/>
3333
</div>
3434
<div id="treeView">

web/js/CacheUMLExplorer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var CacheUMLExplorer = function (treeViewContainer, classViewContainer) {
2929
methodDescription: id("methodDescription"),
3030
methodViewBounds: id("methodViewBounds"),
3131
namespaces: id("namespaces"),
32-
classTreeSearch: id("classTreeSearch")
32+
classTreeSearch: id("classTreeSearch"),
33+
searchBlock: id("searchBlock")
3334
};
3435

3536
this.UI = new UI(this);

web/js/ClassTree.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ var ClassTree = function (parent, treeViewContainer) {
2020
self.searchChanged.call(self, (e.target || e.srcElement).value);
2121
});
2222

23+
window.addEventListener("resize", function () {
24+
self.updateSizes();
25+
});
26+
27+
this.updateSizes();
28+
29+
};
30+
31+
ClassTree.prototype.updateSizes = function () {
32+
33+
var dh = this.cacheUMLExplorer.elements.searchBlock.clientHeight,
34+
h = window.innerHeight - dh,
35+
b = this.cacheUMLExplorer.elements.treeViewContainer;
36+
37+
b.style.paddingTop = 0;
38+
b.style.marginTop = dh + "px";
39+
b.style.height = h + "px";
40+
2341
};
2442

2543
ClassTree.prototype.showLoader = function () {

0 commit comments

Comments
 (0)