From: Artur Signell Date: Tue, 31 Jan 2012 13:33:01 +0000 (+0200) Subject: Merged 'b1ae3cd70e2ca4656bb28f77ca79fe0efd29dd67' (origin/6.8) X-Git-Tag: 7.0.0.alpha2~485 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c1f26940cd893dc5e89d2c6eb39d83ce668557fe;p=vaadin-framework.git Merged 'b1ae3cd70e2ca4656bb28f77ca79fe0efd29dd67' (origin/6.8) Conflicts: WebContent/release-notes.html tests/server-side/com/vaadin/tests/server/LicenseInJavaFiles.java --- c1f26940cd893dc5e89d2c6eb39d83ce668557fe diff --cc src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index de68ae96a4,f7d23d4453..24763745e3 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@@ -4536,10 -4744,10 +4547,11 @@@ public class VScrollTable extends FlowP super.onAttach(); if (pendingComponentPaints != null) { for (UIDL uidl : pendingComponentPaints) { - Paintable paintable = client.getPaintable(uidl); + VPaintableWidget paintable = (VPaintableWidget) VPaintableMap + .get(client).getPaintable(uidl.getId()); paintable.updateFromUIDL(uidl, client); } + pendingComponentPaints.clear(); } } diff --cc src/com/vaadin/ui/Window.java index e6c8642b84,7e33f91d31..a6cf51e80f --- a/src/com/vaadin/ui/Window.java +++ b/src/com/vaadin/ui/Window.java @@@ -889,13 -2344,64 +889,37 @@@ public class Window extends Panel imple */ @Override public void focus() { - if (getParent() != null) { - /* - * When focusing a sub-window it basically means it should be - * brought to the front. Instead of just moving the keyboard focus - * we focus the window and bring it top-most. - */ - bringToFront(); - } else { - super.focus(); - } - } - - /** - * Notifies the child components and subwindows that the window is attached - * to the application. - */ - @Override - public void attach() { - super.attach(); - for (Window w : subwindows) { - w.attach(); - } - } - - /** - * Notifies the child components and subwindows that the window is detached - * from the application. - */ - @Override - public void detach() { - super.detach(); - for (Window w : subwindows) { - w.detach(); - } + /* + * When focusing a sub-window it basically means it should be brought to + * the front. Instead of just moving the keyboard focus we focus the + * window and bring it top-most. + */ + super.focus(); + bringToFront(); } + /** + * Notifies the child components and subwindows that the window is attached + * to the application. + */ + @Override + public void attach() { + super.attach(); + for (Window w : subwindows) { + w.attach(); + } + } + + /** + * Notifies the child components and subwindows that the window is detached + * from the application. + */ + @Override + public void detach() { + super.detach(); + for (Window w : subwindows) { + w.detach(); + } + } + }