Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed May 30, 2015
2 parents c784854 + 1bfcdf2 commit f08934a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CacheUMLExplorer",
"version": "0.12.0",
"version": "0.12.1",
"description": "An UML Class explorer for InterSystems Caché",
"directories": {
"test": "test"
Expand Down
1 change: 1 addition & 0 deletions web/css/interface.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ html, body {
float: left;
width: 200px;
height: 100%;
box-shadow: 0 0 0 1px lightgray;
}

.ui-mainBlock {
Expand Down
1 change: 0 additions & 1 deletion web/css/treeView.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
display: block;
font-size: 16px;
height: 100%;
border-right: 1px solid lightgray;
overflow: auto;
box-sizing: border-box;
padding-top: 24px;
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<body onload="cue = new CacheUMLExplorer(document.getElementById('treeView'), document.getElementById('svgContainer'))">
<div class="ui-body" id="ui-body">
<div class="ui-sideBlock">
<div class="ui-sideSearchBlock">
<div class="ui-sideSearchBlock" id="searchBlock">
<input type="search" id="classTreeSearch" placeholder="Search..."/>
</div>
<div id="treeView">
Expand Down
3 changes: 2 additions & 1 deletion web/js/CacheUMLExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ var CacheUMLExplorer = function (treeViewContainer, classViewContainer) {
methodDescription: id("methodDescription"),
methodViewBounds: id("methodViewBounds"),
namespaces: id("namespaces"),
classTreeSearch: id("classTreeSearch")
classTreeSearch: id("classTreeSearch"),
searchBlock: id("searchBlock")
};

this.UI = new UI(this);
Expand Down
18 changes: 18 additions & 0 deletions web/js/ClassTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ var ClassTree = function (parent, treeViewContainer) {
self.searchChanged.call(self, (e.target || e.srcElement).value);
});

window.addEventListener("resize", function () {
self.updateSizes();
});

this.updateSizes();

};

ClassTree.prototype.updateSizes = function () {

var dh = this.cacheUMLExplorer.elements.searchBlock.clientHeight,
h = window.innerHeight - dh,
b = this.cacheUMLExplorer.elements.treeViewContainer;

b.style.paddingTop = 0;
b.style.marginTop = dh + "px";
b.style.height = h + "px";

};

ClassTree.prototype.showLoader = function () {
Expand Down

0 comments on commit f08934a

Please sign in to comment.