mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Fix resize event issue by avoiding adjust viewport meta multiple times
This commit is contained in:
@@ -30,7 +30,8 @@ var JS = require('../platform/js');
|
||||
* LoadingItems is the manager of items in pipeline.
|
||||
* It hold a map of items, each entry in the map is a url to object key value pair.
|
||||
* Each item always contains the following property:
|
||||
* - src: The url
|
||||
* - id: The identification of the item, usually it's identical to url
|
||||
* - url: The url
|
||||
* - type: The type, it's the extension name of the url by default, could be specified manually too
|
||||
* - error: The error happened in pipeline will be stored in this property
|
||||
* - content: The content processed by the pipeline, the final result will also be stored in this property
|
||||
|
||||
@@ -330,6 +330,7 @@ var View = cc._Class.extend({
|
||||
_adjustViewportMeta: function () {
|
||||
if (this._isAdjustViewPort) {
|
||||
this._setViewportMeta(__BrowserGetter.meta, false);
|
||||
this._isAdjustViewPort = false;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user