From ef521355259ec2ae3f0fed99ee11ddd19fe6324a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 2 Jan 2018 13:56:08 +0100 Subject: [PATCH] text: apply target's precision to value --- CHANGELOG.md | 2 +- src/browser/js/app/widgets/plots/text.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc9ba564..5a19211d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - bug fixes - plots now send their value to other widget for synchronization as expected - + - text widgets now apply their target widget's precision ## 0.22.0 diff --git a/src/browser/js/app/widgets/plots/text.js b/src/browser/js/app/widgets/plots/text.js index a5edd853..103a42d8 100644 --- a/src/browser/js/app/widgets/plots/text.js +++ b/src/browser/js/app/widgets/plots/text.js @@ -71,7 +71,7 @@ module.exports = class Text extends _widgets_base { value for (var i=widget.length-1; i>=0; i--) { if (widget[i].getValue) { - this.setValue(widget[i].getValue(), {sync: e.options.sync}) + this.setValue(widget[i].getValue(true), {sync: e.options.sync}) return } }