Fixed the iframe example in Showcase so that it loads the modules root url, which has the effect of loading the module in the iframe without any warnings.  I added some default iframe styles.  This patch is TBR.

Patch by: jlabanca



git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2373 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwFrame.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwFrame.java
index 080f8a5..a6964b4 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwFrame.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwFrame.java
@@ -15,6 +15,7 @@
  */
 package com.google.gwt.sample.showcase.client.content.other;
 
+import com.google.gwt.core.client.GWT;
 import com.google.gwt.i18n.client.Constants;
 import com.google.gwt.sample.showcase.client.ContentWidget;
 import com.google.gwt.user.client.ui.Button;
@@ -84,13 +85,14 @@
   @Override
   public Widget onInitialize() {
     // Create a new frame
-    final Frame frame = new Frame("GWT-default.css");
+    String url = GWT.getModuleBaseURL();
+    final Frame frame = new Frame(url);
     frame.setSize("700px", "300px");
     frame.ensureDebugId("cwFrame");
 
     // Create a form to set the location of the frame
     final TextBox locationBox = new TextBox();
-    locationBox.setText(frame.getUrl());
+    locationBox.setText(url);
     Button setLocationButton = new Button(constants.cwFrameSetLocation());
     HorizontalPanel optionsPanel = new HorizontalPanel();
     optionsPanel.setSpacing(8);
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/GWT-default.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/GWT-default.css
index 0ca8055..414b871 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/GWT-default.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/GWT-default.css
@@ -19,6 +19,13 @@
   color: #0000AA;
 }
 
+iframe {
+	border-top: 2px solid #666;
+  border-left: 2px solid #666;
+  border-right: 2px solid #bbb;
+  border-bottom: 2px solid #bbb;
+}
+
 /**
  * Applied to buttons.
  */
@@ -216,12 +223,6 @@
 }
 
 /**
- * Applied to the Frame widget, which is an iframe wrapper.
- */
-.gwt-Frame {
-}
-
-/**
  * Applied to split panels.
  */
 .gwt-HorizontalSplitPanel {