summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni@vaadin.com>2014-08-14 14:48:26 +0300
committerVaadin Code Review <review@vaadin.com>2014-08-15 10:34:40 +0000
commit56195677e92cb6ad9ac6e0e5ef2aae2a403d3fc0 (patch)
tree0bdff9faf66df78490838db688b5c22fd3fc3a20 /client
parent987505f4a9ffee33bd9edc48d412f5b29a3fccd2 (diff)
downloadvaadin-framework-56195677e92cb6ad9ac6e0e5ef2aae2a403d3fc0.tar.gz
vaadin-framework-56195677e92cb6ad9ac6e0e5ef2aae2a403d3fc0.zip
Window close and maximize/restore buttons not visible on initial render in IE8 (Valo) #14413
Remove unnecessary FontAwesome declaration as well, which made the characters look bad in IE8. Change-Id: Ib0f9b01023b0a7a6f40513c80cbb6e6c69bd164c
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VWindow.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VWindow.java b/client/src/com/vaadin/client/ui/VWindow.java
index 495e230156..7223e4ac83 100644
--- a/client/src/com/vaadin/client/ui/VWindow.java
+++ b/client/src/com/vaadin/client/ui/VWindow.java
@@ -245,6 +245,20 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
* state.
*/
setTabStopEnabled(doTabStop);
+
+ // Fix for #14413. Any pseudo elements inside these elements are not
+ // visible on initial render unless we shake the DOM.
+ if (BrowserInfo.get().isIE8()) {
+ closeBox.getStyle().setDisplay(Display.NONE);
+ maximizeRestoreBox.getStyle().setDisplay(Display.NONE);
+ Scheduler.get().scheduleFinally(new Command() {
+ @Override
+ public void execute() {
+ closeBox.getStyle().clearDisplay();
+ maximizeRestoreBox.getStyle().clearDisplay();
+ }
+ });
+ }
}
@Override