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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user