Commit d6f15329 authored by rockyl's avatar rockyl

修改callOnNextTick方法,不去重

parent 35e4fbd0
export { enjectBaseUrl } from './webService'
export { default as SampleApi } from './SampleApi' export { default as SampleApi } from './SampleApi'
\ No newline at end of file
...@@ -10,6 +10,8 @@ import {getStageSize, ScillaComponent, } from "scilla"; ...@@ -10,6 +10,8 @@ import {getStageSize, ScillaComponent, } from "scilla";
*/ */
export default class FullStageSize extends ScillaComponent { export default class FullStageSize extends ScillaComponent {
once: boolean = true; once: boolean = true;
applyWidth: boolean = true;
applyHeight: boolean = true;
private _stageSize; private _stageSize;
...@@ -48,7 +50,12 @@ export default class FullStageSize extends ScillaComponent { ...@@ -48,7 +50,12 @@ export default class FullStageSize extends ScillaComponent {
execute() { execute() {
const {width, height} = this.stageSize; const {width, height} = this.stageSize;
this.transform.width = width; if(this.applyWidth){
this.transform.height = height; this.transform.width = width;
}
if(this.applyHeight){
this.transform.height = height;
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment