File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ cc.TMXLayer = cc.SpriteBatchNode.extend(/** @lends cc.TMXLayer# */{
131131
132132 this . _cacheContext . translate ( 0 , locCanvas . height ) ;
133133 var locTexContentSize = this . _cacheTexture . _contentSize ;
134- locTexContentSize . width = locCanvas . width ;
135- locTexContentSize . height = locCanvas . height ;
134+ locTexContentSize . _width = locCanvas . width ;
135+ locTexContentSize . _height = locCanvas . height ;
136136
137137 // Init sub caches if needed
138138 var totalPixel = locCanvas . width * locCanvas . height ;
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ var cocos2dApp = cc.Application.extend({
6767 cc . FileUtils . getInstance ( ) . setSearchResolutionsOrder ( resDirOrders ) ;
6868 director . setContentScaleFactor ( resourceSize . width / designSize . width ) ;
6969 cc . EGLView . getInstance ( ) . setDesignResolutionSize ( designSize . width , designSize . height , cc . RESOLUTION_POLICY . SHOW_ALL ) ;
70+ cc . EGLView . getInstance ( ) . _resizeWithBrowserSize ( true ) ;
7071
7172 // turn on display FPS
7273 director . setDisplayStats ( this . config [ 'showFPS' ] ) ;
You can’t perform that action at this time.
0 commit comments