diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-24 14:49:22 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-24 14:49:22 +0300 |
commit | 8c11021ab84fec373f0c27e3a9b87b4d7e5b049e (patch) | |
tree | 5632998156ecee5a0c1ed50ae66d8190e33c31f8 | |
parent | 0985dac7be6384d05c91d8ce91b41cdcf33226ab (diff) | |
parent | 410a4787830a6b58507217219cd20f8965aa2eff (diff) | |
download | vaadin-framework-8c11021ab84fec373f0c27e3a9b87b4d7e5b049e.tar.gz vaadin-framework-8c11021ab84fec373f0c27e3a9b87b4d7e5b049e.zip |
Merge branch 'html5-doctype'
11 files changed, 16 insertions, 14 deletions
diff --git a/WebContent/VAADIN/themes/base/caption/caption.scss b/WebContent/VAADIN/themes/base/caption/caption.scss index c6fd124ad6..3eb26e255c 100644 --- a/WebContent/VAADIN/themes/base/caption/caption.scss +++ b/WebContent/VAADIN/themes/base/caption/caption.scss @@ -18,7 +18,7 @@ .v-caption .v-captiontext { display: inline-block; overflow: hidden; - vertical-align: middle; + vertical-align: top; } .v-caption .v-required-field-indicator { display: inline-block; diff --git a/WebContent/VAADIN/themes/base/dragwrapper/dragwrapper.scss b/WebContent/VAADIN/themes/base/dragwrapper/dragwrapper.scss index 558b305742..9d60bf0618 100644 --- a/WebContent/VAADIN/themes/base/dragwrapper/dragwrapper.scss +++ b/WebContent/VAADIN/themes/base/dragwrapper/dragwrapper.scss @@ -110,7 +110,7 @@ .v-ddwrapper-over-left:before, .v-ddwrapper-over-right:before { display: block; - content: ""; + position: absolute; width: 6px; height: 6px; diff --git a/WebContent/VAADIN/themes/base/layout/layout.scss b/WebContent/VAADIN/themes/base/layout/layout.scss index 04df35872e..4adf6ceb3a 100644 --- a/WebContent/VAADIN/themes/base/layout/layout.scss +++ b/WebContent/VAADIN/themes/base/layout/layout.scss @@ -54,7 +54,7 @@ TODO .v-vertical, .v-horizontal { - display: inline-block; + display: block; } div.v-layout.v-horizontal.v-widget { @@ -79,12 +79,12 @@ div.v-layout.v-horizontal.v-widget { /* Clear any floats inside the slot, to prevent unwanted collapsing */ .v-vertical > .v-slot:after { - content: ""; display: inline-block; clear: both; width: 0; height: 0; overflow: hidden; + line-height:0; } .v-vertical > .v-slot, @@ -114,7 +114,7 @@ div.v-layout.v-horizontal.v-widget { .v-align-bottom:before, .v-expand > .v-align-middle:before, .v-expand > .v-align-bottom:before { - content: ""; + display: inline-block; height: 100%; vertical-align: middle; diff --git a/WebContent/VAADIN/themes/base/panel/panel.scss b/WebContent/VAADIN/themes/base/panel/panel.scss index 93d82cd615..202e75c226 100644 --- a/WebContent/VAADIN/themes/base/panel/panel.scss +++ b/WebContent/VAADIN/themes/base/panel/panel.scss @@ -21,6 +21,7 @@ } .v-panel-caption span { vertical-align: middle; + display: table-row; } .v-panel-caption { white-space: nowrap; diff --git a/WebContent/VAADIN/themes/base/select/select.scss b/WebContent/VAADIN/themes/base/select/select.scss index d6ef6d3585..d2d9e8a663 100644 --- a/WebContent/VAADIN/themes/base/select/select.scss +++ b/WebContent/VAADIN/themes/base/select/select.scss @@ -98,6 +98,10 @@ .v-filterselect-suggestmenu table { border-collapse: collapse; border: none; + vertical-align:top; +} +.v-filterselect-suggestmenu tr{ + line-height:0; } .v-filterselect-suggestmenu .gwt-MenuItem { white-space: nowrap; diff --git a/WebContent/VAADIN/themes/base/table/table.scss b/WebContent/VAADIN/themes/base/table/table.scss index d521b5ebae..fd3c0af0e1 100644 --- a/WebContent/VAADIN/themes/base/table/table.scss +++ b/WebContent/VAADIN/themes/base/table/table.scss @@ -267,7 +267,7 @@ .v-table-row-drag-top .v-table-cell-content:first-child:before, .v-table-row-drag-bottom .v-table-cell-content:first-child:after { display: block; - content: ""; + position: absolute; width: 6px; height: 6px; diff --git a/WebContent/VAADIN/themes/base/tree/tree.scss b/WebContent/VAADIN/themes/base/tree/tree.scss index 0319bbe994..2e34053ad5 100644 --- a/WebContent/VAADIN/themes/base/tree/tree.scss +++ b/WebContent/VAADIN/themes/base/tree/tree.scss @@ -58,7 +58,7 @@ div.v-tree-node-leaf { .v-tree .v-tree-node-drag-bottom:after, .v-tree .v-tree-node-caption-drag-center:after { display: block; - content: ""; + position: absolute; width: 6px; height: 6px; diff --git a/WebContent/VAADIN/themes/runo/panel/panel.scss b/WebContent/VAADIN/themes/runo/panel/panel.scss index 5963f73434..3d6b00173b 100644 --- a/WebContent/VAADIN/themes/runo/panel/panel.scss +++ b/WebContent/VAADIN/themes/runo/panel/panel.scss @@ -38,7 +38,7 @@ } .v-panel-deco:before { display: block; - content: ""; + width: 9px; height: 9px; margin-left: -9px; diff --git a/WebContent/VAADIN/themes/runo/tabsheet/tabsheet.scss b/WebContent/VAADIN/themes/runo/tabsheet/tabsheet.scss index 683eb35f4c..ec6bdd5b0f 100644 --- a/WebContent/VAADIN/themes/runo/tabsheet/tabsheet.scss +++ b/WebContent/VAADIN/themes/runo/tabsheet/tabsheet.scss @@ -117,7 +117,7 @@ } .v-tabsheet-deco:before { display: block; - content: ""; + width: 9px; height: 9px; margin-left: -9px; diff --git a/server/src/com/vaadin/server/BootstrapHandler.java b/server/src/com/vaadin/server/BootstrapHandler.java index 8721550a41..d6c6d0e59b 100644 --- a/server/src/com/vaadin/server/BootstrapHandler.java +++ b/server/src/com/vaadin/server/BootstrapHandler.java @@ -229,12 +229,9 @@ public abstract class BootstrapHandler implements RequestHandler { Document document = response.getDocument(); - DocumentType doctype = new DocumentType("html", - "-//W3C//DTD XHTML 1.0 Transitional//EN", - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd", + DocumentType doctype = new DocumentType("html", "", "", document.baseUri()); document.child(0).before(doctype); - document.body().parent().attr("xmlns", "http://www.w3.org/1999/xhtml"); Element head = document.head(); head.appendElement("meta").attr("http-equiv", "Content-Type") diff --git a/server/src/com/vaadin/ui/LoginForm.java b/server/src/com/vaadin/ui/LoginForm.java index 661c24bf56..b65d1cfa06 100644 --- a/server/src/com/vaadin/ui/LoginForm.java +++ b/server/src/com/vaadin/ui/LoginForm.java @@ -161,7 +161,7 @@ public class LoginForm extends CustomComponent { + "\">" + "<div class='v-app v-app-loginpage' style=\"background:transparent;\">" + "<iframe name='logintarget' style='width:0;height:0;" - + "border:0;margin:0;padding:0;'></iframe>" + + "border:0;margin:0;padding:0;display:block'></iframe>" + "<form id='loginf' target='logintarget' onkeypress=\"submitOnEnter(event)\" method=\"post\">" + "<div>" + usernameCaption |