"Dantman" posted a comment on MediaWiki.r101433.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/101433#c27458

Commit summary for MediaWiki.r101433:

fix on orientation change issue

Dantman's comment:

@_@ Really? This could be done with 5 less lines.

<script lang=javascript>
function updateOrientationSearchWidth() {
        switch( window.orientation ) {
                case 0:
                case 90:
                case -90:
                        setTimeout( updateSearchWidth, 200 );
                        break;
        }
}
</script>

Shouldn't we just run this on any orientation where <code>window.orientation % 
90 === 0</code>.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to