-
12 Oct 2012 6:39 AM #1
iconMask in Android 2.0.3, small white border keeps visible
iconMask in Android 2.0.3, small white border keeps visible
REQUIRED INFORMATION
Ext version tested:- ST 2.0.1.1
- Android 2.0.3 <-- bug
- Android 4.0.4 <-- no bug
- The iconCls renders correctly, although a small white border keeps visible. Sometimes on the right, sometimes on the bottom.
- Add the code at the bottom to the 'sencha app create test ..'-app
- build 'sencha app build production'
- run through the 2.03 Stock Browser
- a normal looking button on the left
- a white border at the right of the icon image
HELPFUL INFORMATIONCode:{ xtype: 'toolbar', docked: 'bottom', items: [ { xtype: 'button', iconCls: 'info', iconMask: true, iconAlign: 'top', text: 'Add Selected', flex: 1 }, { xtype: 'button', iconCls: 'action', iconMask: true, iconAlign: 'top', text: 'Add Other', flex: 1 } ] }
Possible fix:- A fix for this problem is override the CSS Mixin for the picto's, in app.scss:
Code:@mixin custom-pictos-iconmask($name) { .x-tab .x-button-icon.#{$name}, .x-button .x-button-icon.x-icon-mask.#{$name} { background-size: 95% 95%; background-color: transparent; } } @include custom-pictos-iconmask('info');
-
12 Oct 2012 6:53 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Android 2.0.3 isn't a supported platform and this sounds like a browser issue not drawing the icon properly.
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 Oct 2012 6:55 AM #3
Unsupported? Where can I find this information?
I thought I saw Android 2 related code in the viewport/Android.js-class.
Anyway it's indeed Android's poor webkit-mask CSS implementation, I just wanted to post this here because of the possible fix. I've had a lot of threads helping me this way.
-
12 Oct 2012 6:57 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
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 Oct 2012 11:38 AM #5
Sorry I meant 2.3, it's a HTC Evo 4g device.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote