Skip to content

Commit

Permalink
Fixing hacks fixed by elastic#10175
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker authored and ppisljar committed Feb 24, 2017
1 parent 9ff5256 commit 7aa6e14
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
19 changes: 0 additions & 19 deletions src/core_plugins/metrics/public/kbn_vis_types/editor_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,6 @@ app.controller('MetricsEditorController', (
const fetch = Private(require('../lib/fetch'));
const fetchFields = Private(require('../lib/fetch_fields'));

const globalNavUnsub = $scope.$watch(() => {
return globalNavState.isOpen();
}, newValue => {
if (newValue) {
$scope.editorWidth = '180px';
} else {
$scope.editorWidth = '53px';
}
});

$scope.editorTop = '70px';
$scope.$watch(() => {
return $('.toaster-container').length && $('.toaster-container').height() || 0;
}, newValue => {
$scope.editorTop = `${newValue + 70}px`;
});

$scope.$on('$destory', globalNavUnsub);

const debouncedFetch = _.debounce(() => {
fetch($scope)();
}, 300, {
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/metrics/public/kbn_vis_types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function MetricsVisProvider(Private) {
for creating visualizations for time series based metrics using the
powerful pipeline aggs Elasticsearch feature`,
template: require('./vis.html'),
fullEditor: true,
params: {
editor: require('./editor.html')
},
Expand Down
5 changes: 0 additions & 5 deletions src/core_plugins/metrics/public/less/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

.vis_editor_container {
background: @pageColor;
position: fixed;
top: 70px;
right: 0;
bottom: 0;
overflow: auto;
}

// general styles
Expand Down

0 comments on commit 7aa6e14

Please sign in to comment.