Merge pull request #420 from EverythingMe/fix/issue_417

Fix: Make query editor auto resize again to prevent scroll issues
This commit is contained in:
Arik Fraimovich 2015-05-07 21:52:07 +03:00
commit e1c409366c
3 changed files with 9 additions and 3 deletions

View File

@ -117,6 +117,8 @@
$scope.query.query = newValue;
});
}
$('.schema-container').css('height', $('.CodeMirror').css('height'));
});
$scope.$watch('query.query', function () {

View File

@ -156,7 +156,7 @@ li.widget:hover {
/* CodeMirror */
.CodeMirror {
border: 1px solid #eee;
/*height: auto;*/
height: auto;
min-height: 300px;
margin-bottom: 10px;
}
@ -308,8 +308,12 @@ counter-renderer counter-name {
height: 100%;
}
.schema-browser {
.schema-container {
height: 300px;
}
.schema-browser {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}

View File

@ -83,7 +83,7 @@
</p>
</div>
</div>
<div class="col-md-3" ng-show="hasSchema">
<div class="col-md-3 schema-container" ng-show="hasSchema">
<div>
<input type="text" placeholder="Search schema..." class="form-control" ng-model="schemaFilter">
</div>