Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

layout-resize-test.html 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>LayoutResizeTest opener</title>
  6. </head>
  7. <body>
  8. <button onclick="testV7()">Open LayoutResizeTest (Vaadin 7)</button><br>
  9. <button onclick="testV6()">Open LayoutResizeTest (Vaadin 6)</button><br>
  10. <button onclick="resize1()">Resize to 650x450</button><br>
  11. <button onclick="resize2()">Resize to 950x750</button>
  12. <script>
  13. var win1, win2;
  14. function testV7() {
  15. win1 = window.open('/vaadin/run/com.vaadin.tests.components.orderedlayout.LayoutResizeTest?restartApplication&debug','layoutResizeTestV7','width=800,height=600');
  16. }
  17. function testV6() {
  18. win2 = window.open('/LayoutBenchmark/?restartApplication&debug','layoutResizeTestV6','width=800,height=600');
  19. }
  20. function resize1() {
  21. if(win1)
  22. win1.resizeTo(650,450);
  23. if(win2)
  24. win2.resizeTo(650,450);
  25. }
  26. function resize2() {
  27. if(win1)
  28. win1.resizeTo(950,750);
  29. if(win2)
  30. win2.resizeTo(950,750);
  31. }
  32. </script>
  33. </body>
  34. </html>