Hey Sven,
2010/10/11 Knoblich Sven <[email protected]>:
> Hello,
> you can use the tree example on
> http://www.webtoolkit.eu/widgets#/basics/wtree . If you disable JS, the tree
> will be displayed horizontal and without any chance to expande.
Ah yes, I remember this -- I've fixed this in git last week while
looking at your changes. The fix is easily back-ported to 3.1.5 if you
prefer that.
See the patch below.
Regards,
koen
diff --git a/src/Wt/WApplication.C b/src/Wt/WApplication.C
index 5557025..eb0b11e 100644
--- a/src/Wt/WApplication.C
+++ b/src/Wt/WApplication.C
@@ -179,6 +179,9 @@ WApplication::WApplication(const WEnvironment& env)
"background: transparent;"
"text-decoration: none;"
"color: inherit;");
+ if (environment().agentIsIE())
+ styleSheet_.addRule(".Wt-wrap",
+ "margin: -1px 0px -3px;");
//styleSheet_.addRule("a.Wt-wrap", "text-decoration: none;");
styleSheet_.addRule(".Wt-invalid", "background-color: #f79a9a;");
styleSheet_.addRule("span.Wt-disabled", "color: gray;");
diff --git a/src/web/DomElement.C b/src/web/DomElement.C
index 269c852..eb418a1 100644
--- a/src/web/DomElement.C
+++ b/src/web/DomElement.C
@@ -748,6 +748,9 @@ void DomElement::asHTML(EscapeOStream& out,
out << '"';
std::string wrapStyle = cssStyle();
+ if (!isDefaultInline())
+ wrapStyle += "display: block;";
+
if (!wrapStyle.empty()) {
out << " style=";
fastHtmlAttributeValue(out, attributeValues, wrapStyle);
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest