-
9 Mar 2012 8:58 AM #1
Message box styling issue in IE only
Message box styling issue in IE only
REQUIRED INFORMATIONExt version tested:
- Ext 4.0.7
- IE8/compatibility mode
- Styling issue with message box in IE
- Added ext code below to examples/theme/theme.js
- Set up custom theme using the steps listed in learning guide
- Added one custom line(white background listed below)
- correct styling
- buttons overlap background
HELPFUL INFORMATIONScreenshot or Video:Debugging already done:Code:var dialog = Ext.create('Ext.window.MessageBox', { buttons: [ {text: "Ok", handler: function(){alert('hi');}}, {text: "Play", handler: function(){alert('hello');}}, {text: "that", handler: function(){alert('how are you');}}, {text: "funky music", handler: function(){alert('hola');}}, {text: "white boy", handler: function(){alert('coma esta?');}}, {text: "Cancel", handler: function(){dialog.close();}} ] }); dialog.show({ title: 'Save Changes?', width: 800, msg: 'Click OK to delete this item or click Cancel to exit', icon: Ext.MessageBox.WARNING });- Found potential solution
- change padding
- default css plus one addition($window-body-background-color: #ffffff !important; )
- WinXP
Removing padding-bottom from that via IE's dev tools appears to fix the issue. Normally I would just alter the scss for window. However, in this case the styling is being drawn on the element itself not via a class. My suspicion is that IE, being IE, is incorrectly handling padding and since the buttons are in a tool bar drawn with top/left it is choosing to draw them after the last physical thing in the mark up and over top of the padding.Code:<div class="x-container x-window-item x-container-default" id="container-1346" role="presentation" style="padding-bottom: 10px; padding-left: 10px; width: 590px; padding-right: 10px; overflow: hidden; padding-top: 10px;">
This looks fine in the newest versions of chrome and firefox. Also, removing the padding-bottom seems to have no change on the styling at least in chrome.
-
9 Mar 2012 2:31 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
Have you tried this in 4.1.0 beta3?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Mar 2012 8:03 AM #3
Short answer, yes it appears to work fine in 4.1 beta 3. However, it appears there are some other bugs with custom themes in the beta. If I run the themes example with resources/css/ext-all.css it works fine. However, switching to a custom theme(no changes just different file) cause some weird spacing issues. Also, the tabs styling appears to have additional issues(see below). This behavior seems fairly consistent among other examples I've tried as well.
I've not tried to debug the below behavior at all as it's really a separate issue. I'm not sure how soon 4.1 will be out of beta status either. Perhaps these are known issues. I've not looked. But, I'm not sure we can upgrade to the beta with issues such as this and I'm not sure my QA will let my code through with the issues I have in 4.0.7.
untitled1.jpguntitled2.jpg
-
14 Mar 2012 12:40 PM #4
I noticed today when messing around with this that a page built with ext-all.js and only a message box appears to work correctly in 4.0.7. The example page for theme is using bootstrap instead of ext-all.js and displays as I screen capped above.
In 4.1 beta 3 they have converted that theme example to ext-all.js. I'm thinking the issue has something to do with bootstrap and if I avoid that I think things may be ok.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote