Project

General

Profile

Bug #5607

constant actor icon won't automatically re-size since 2.3.

Added by jianwu jianwu about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
interface
Target version:
Start date:
05/14/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5607

Description

For actor 'Constant' and 'String Constant', Kepler GUI used to automatically replace long text with its first a few characters followed by '...'. I validated it in Kepler 2.2. But since Kepler 2.3 (also in Kepler trunk), these two actors won't re-size anymore. All the text in their value parameter is displayed in GUI. It is very unfriendly when the text is very long.

I attached a demo workflow and its displays in Kepler 2.2 and 2.3.

constant-string-2.2.xml (5.52 KB) constant-string-2.2.xml jianwu jianwu, 05/14/2012 11:44 AM
constant-actor-in-kepler-2.2.png (9.96 KB) constant-actor-in-kepler-2.2.png jianwu jianwu, 05/14/2012 11:45 AM
constant-actor-in-kepler-2.3.png (17.1 KB) constant-actor-in-kepler-2.3.png jianwu jianwu, 05/14/2012 11:45 AM

History

#3 Updated by jianwu jianwu about 7 years ago

This bug might be related to bug 5587.

#4 Updated by Christopher Brooks almost 7 years ago

If the value of a Const actor is a long string, then the icon is not truncated.
This occurs in both Kepler and Vergil.

#5 Updated by Christopher Brooks almost 7 years ago

I've backed out a portion of this change:

2011-03-03 16:41 cshelton

  • [r60470] /trunk/ptolemy/vergil/icon/AttributeValueIcon.java,
    /trunk/ptolemy/vergil/icon/BoxedValueIcon.java: Modified
    BoxedValueIcon to ignore the default displayWidth and
    displayHeight parameters and render the full string value of the
    attribute in its icon.

I've sent email to Charles asking for a use case that requires the icon
to not be truncated.

This should be left open until Charles and I reach a consensus about this.

#6 Updated by Redmine Admin about 6 years ago

Original Bugzilla ID was 5607

Also available in: Atom PDF