Project

General

Profile

Actions

Bug #5607

closed

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

Added by jianwu jianwu almost 12 years ago. Updated over 11 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.


Files

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
Actions #3

Updated by jianwu jianwu almost 12 years ago

This bug might be related to bug 5587.

Actions #4

Updated by Christopher Brooks almost 12 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.

Actions #5

Updated by Christopher Brooks almost 12 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.

Actions #6

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 5607

Actions

Also available in: Atom PDF