mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
* Revert "sync view code (#7042)"
This reverts commit c2b46ae343.
* update
This commit is contained in:
@@ -834,6 +834,15 @@ export class View extends EventTarget {
|
||||
}
|
||||
}
|
||||
|
||||
// hack
|
||||
private _adjustSizeKeepCanvasSize () {
|
||||
const designWidth = this._originalDesignResolutionSize.width;
|
||||
const designHeight = this._originalDesignResolutionSize.height;
|
||||
if (designWidth > 0) {
|
||||
this.setDesignResolutionSize(designWidth, designHeight, this._resolutionPolicy);
|
||||
}
|
||||
}
|
||||
|
||||
private _setViewportMeta (metas, overwrite) {
|
||||
let vp = document.getElementById('cocosMetaElement');
|
||||
if (vp && overwrite) {
|
||||
|
||||
Reference in New Issue
Block a user