summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Kempin <edwin.kempin@sap.com>2011-06-01 13:57:46 +0200
committerEdwin Kempin <edwin.kempin@sap.com>2011-06-01 13:57:46 +0200
commitf258b54813e7694bf3a84046393ad16882dab867 (patch)
tree32a1375d91b9a1ed66c9010662eba5b459a468f5
parent2455901afc79bcc08de16b9e55ee8aa66194b85d (diff)
downloadgwtexpui-f258b54813e7694bf3a84046393ad16882dab867.tar.gz
Make background of CopyableLabel transparent
The flash animation to display a CopyableLabel has now a transparent background. In Gerrit the background of the CopyableLabel will now always have the color that is defined as background color in the theme. Before this change the CopyableLabel always had a white background which looked bad if a non-white background color for Gerrit was configured. Signed-off-by: Edwin Kempin <edwin.kempin@gmail.com>
-rw-r--r--src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java b/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java
index 1beee4c..cc8c05f 100644
--- a/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java
+++ b/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java
@@ -144,6 +144,7 @@ public class CopyableLabel extends Composite implements HasText {
h.openElement("embed");
h.setWidth(SWF_WIDTH);
h.setHeight(SWF_HEIGHT);
+ h.setAttribute("wmode", "transparent");
h.setAttribute("type", "application/x-shockwave-flash");
h.setAttribute("src", swfUrl());
h.setAttribute("FlashVars", flashVars);