[Mono-bugs] [Bug 77811][Nor] Changed - BackImageUrl property of Panel, not well rendered

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 17 05:04:49 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by informatique.internet at fiducial.fr.

http://bugzilla.ximian.com/show_bug.cgi?id=77811

--- shadow/77811	2006-03-17 04:54:22.000000000 -0500
+++ shadow/77811.tmp.26069	2006-03-17 05:04:49.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 77811
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.Web
 AssignedTo: gonzalo at ximian.com                            
 ReportedBy: informatique.internet at fiducial.fr               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -68,6 +68,25 @@
 
 Additional Information:
 without "url()" the background-image property is not interpreted by the
 browser!
 
 Thanks
+
+------- Additional Comments From informatique.internet at fiducial.fr  2006-03-17 05:04 -------
+A proposal patch:
+Index: System.Web.UI.WebControls/Panel.cs
+===================================================================
+--- System.Web.UI.WebControls/Panel.cs  (révision 58101)
++++ System.Web.UI.WebControls/Panel.cs  (copie de travail)
+@@ -53,7 +53,7 @@
+                        base.AddAttributesToRender (w);
+
+                        if (BackImageUrl != "")
+-                               w.AddStyleAttribute
+(HtmlTextWriterStyle.BackgroundImage, BackImageUrl);
++                               w.AddStyleAttribute
+(HtmlTextWriterStyle.BackgroundImage, "url("+BackImageUrl+")");
+
+                        if (!Wrap) {
+
+But it may be better to do this in AddStyleAttribute? I don't know...


More information about the mono-bugs mailing list