-
10 Mar 2010 8:19 AM #1
[CLOSED] cannot set the width of MessageBox to be a value bigger than 600
[CLOSED] cannot set the width of MessageBox to be a value bigger than 600
Hi,
the default maxWidth of messagebox is 600. However, no matter in previous version or in 3.0, I cannot change the maxWidth or width to be a value >600.
for example, if I set the width or/and maxWidth to be 1000, nothing will change. the width of the message box will still be 600.
although it does work for value <600.
I did not find anyone asked this yet. is this a known bug?
thx
Warren
-
10 Mar 2010 8:30 AM #2
I can't replicate it.
Shows it 1000px.Code:Ext.onReady(function(){ Ext.Msg.show({ msg: 'foo', maxWidth: 1000, width: 1000 }); });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
10 Mar 2010 8:55 AM #3
thx, Evant!
so you noticed that the messagebox with width equal to 1000 is truely wider that the message box with width set as 600?
if you set the width as screen.width. the width of the message box will be changed to the width of your monitor?
I just wrote a simple page to test this out side of my application, and can still consistentlt encounter this problem.
this is odd.
thx
Warren
-
10 Mar 2010 9:03 AM #4
I can see the visual width of the messagebox increase if the width is changed from 300 to 600, but will not increase anymore if changed from 600 to 1000 or whatever number bigger than 600
-
10 Mar 2010 9:22 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Have you set the maxWidth parameter as well?
-
10 Mar 2010 9:27 AM #6
yes, I did. I set both of them as the same value.
also I noticed that, if you set width, maxWidth is actually ignored. well, this is a good thing though.
-
10 Mar 2010 9:35 AM #7Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Could you post your configuration you are using so we can try and replicate the issue.
-
10 Mar 2010 9:43 AM #8
there is nothing special, since I can reproduce this probelm even with a very simple page below:
if this is not happening to you, the only thing I can think of is that, our infrastructure team imported extjs libraries to the firm, and we load this library from a central repository.Code:<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %><html> <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Cache-Control" content="public"><!-- Load ExtJS library --><script>... code here to load the extjs 3.0 library ...</script><script type="text/javascript">Ext.onReady(function(){Ext.Msg.show({ msg: 'foo', maxWidth:1000, width: 1000 });});</script><title>TEST</title></head><body></body></html>
let me ask them to see whether something is customized or not.
thx for the timely response.
Warren
-
10 Mar 2010 9:54 AM #9Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Looks fine here and for Evan as well...
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote