mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
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:
commit
e1c409366c
@ -117,6 +117,8 @@
|
||||
$scope.query.query = newValue;
|
||||
});
|
||||
}
|
||||
|
||||
$('.schema-container').css('height', $('.CodeMirror').css('height'));
|
||||
});
|
||||
|
||||
$scope.$watch('query.query', function () {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user