import { _decorator, Component, Node, UITransform } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('PopupBodyScaler')
export class PopupBodyScaler extends Component 
{
    @property({type: UITransform})
    private canvasUITrans: UITransform;
    
    @property({type: UITransform})
    private currUITrans: UITransform;

    protected onLoad(): void 
    {
        console.log("Onload");
        this.currUITrans.width = this.canvasUITrans.width;
        this.currUITrans.height = this.canvasUITrans.height;
    }
}

