From 8c52af3829424cb8fe427d4c9e9408a1f39b8a98 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 27 Feb 2016 23:30:46 +0200 Subject: [PATCH] Fix hardcoded column witdth --- lib/components/JsonSchema/json-schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/JsonSchema/json-schema.js b/lib/components/JsonSchema/json-schema.js index 0e8a4009..b8d0dbb1 100644 --- a/lib/components/JsonSchema/json-schema.js +++ b/lib/components/JsonSchema/json-schema.js @@ -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 => {