Fix hardcoded column witdth

This commit is contained in:
Roman Hotsiy 2016-02-27 23:30:46 +02:00
parent 32ca51a3c0
commit 8c52af3829

View File

@ -144,7 +144,7 @@ export default class JsonSchema extends BaseComponent {
// TODO handle internal schemes differently
let names = [].slice.call(this.$element.querySelectorAll('.param-name-content'));
let widths = [144];//names.map(el => el.offsetWidth);
let widths = names.map(el => el.offsetWidth);
let maxWidth = Math.max(...widths);
if (!maxWidth) return;
names.forEach(el => {