Fix visible length of CopyableLabel on Change-Id

The visible length should be the length of the value string being
copied, not the length of the preview text. The preview text can
be shorter, like on the ChangeScreen where its Ideadbeefc0ffee...
but the copied value is longer with "Change-Id: Ideadbeefc0ffee...".

Change-Id: I20bce725734cb48b6c6d9e33b4e352ed0b368361
This commit is contained in:
Shawn Pearce
2013-07-13 14:48:59 -07:00
parent a22e50c292
commit 203b41f43c

View File

@@ -117,7 +117,6 @@ public class CopyableLabel extends Composite implements HasText {
public void setPreviewText(final String text) {
if (textLabel != null) {
textLabel.setText(text);
visibleLen = text.length();
}
}