Fix: Chrome 29 breaks all Sencha Touch 2.* apps

Posted on in CSS Sass Sencha Sencha Touch

Please note: this bug won't occur with Sencha Touch 2.3 (and higher)

I have to admit, I am in love with the Google Chrome browser.
Except yesterday, Google Chrome automatically upgrades itselves to the latest version. This latest version, version 29, suddenly breaks all Sencha Touch 2.2 apps. And ya, you can't downgrade Google Chrome.
Oh no!

Well luckily it's not so hard to fix / patch the bug in the framework.
It actually has something to do with one of the base Sencha Touch stylesheets.

In your touch framework folder open the following Sass mixin:

Search for the st-box mixin, and replace the code for:

//fix for chrome 29 bug. - it just switches the order
//of the display rules
@mixin st-box($important: no) {
    @if $important == important {
        display: flex !important;
        display: -webkit-box !important;
        display: -ms-flexbox !important;
    } @else {
        display: flex;
        display: -webkit-box;
        display: -ms-flexbox;

The next thing you have to do, is compile the Sass stylesheets.
You will need Sass & Compass (and Ruby) have installed on your machine.
On the command line, browse to the folder:
and run the following line:
compass watch

This should fix your Sencha Touch problems for the latest Chrome browser!

(In case you don't have Sass/Compass installed and you only want the generated app.css, feel free to download it from this post:
Sencha Touch default stylesheet: app.css)