[Mono-bugs] [Bug 47921][Maj] New - Width bug (after fix)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 26 Aug 2003 12:43:36 -0400 (EDT)
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 yaronshkop@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=47921
--- shadow/47921 2003-08-26 12:43:36.000000000 -0400
+++ shadow/47921.tmp.19755 2003-08-26 12:43:36.000000000 -0400
@@ -0,0 +1,73 @@
+Bug#: 47921
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: yaronshkop@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Width bug (after fix)
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+
+Description of Problem:
+The width of WebControls can not be changed.
+
+Steps to reproduce the problem:
+1. Open the attached aspx file.
+2. Click the "Test" button
+
+Actual Results:
+The text "sticks" to the right border of the button and the button
+size doesn't changes.
+
+Expected Results:
+The button should grow by 1 pixel at every click (and the text is
+centralized)
+
+How often does this happen?
+Always
+
+Additional Information:
+I beleive this bug is related to other size modifications too.
+(Height, BorderWidth, Font.Size etc.).
+
+<%@ Page language="c#" AutoEventWireup="false" %>
+<%@ Import Namespace="System.Drawing" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+ <HEAD>
+ <script language="C#" runat="server">
+ public class Counter
+ {
+ private static int ctr = 40;
+
+ public static int WHCtr
+ {
+ get{ return ctr++; }
+ }
+ }
+
+ private void BtnTest_Click(object sender, System.EventArgs e)
+ {
+ BtnTest.Width = Counter.WHCtr;
+ }
+ </script>
+ </HEAD>
+ <body MS_POSITIONING="GridLayout">
+ <form id="Form1" method="post" runat="server">
+ <asp:Button id="BtnTest" style="Z-INDEX: 102; LEFT: 304px;
+ POSITION: absolute; TOP: 32px" runat="server"
+ Text="Test" OnClick="BtnTest_Click"></asp:Button>
+ </form>
+ </body>
+</HTML>