File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 66 "./CCKit2/*" : " ./src/CCKit2/*.ts"
77 },
88 "scripts" : {
9- "test" : " echo \" Error: no test specified\" && exit 1"
9+ "build" : " tstl" ,
10+ "doc" : " typedoc"
1011 },
1112 "repository" : {
1213 "type" : " git" ,
1314 "url" : " git+https://github.com/Phoenix-ComputerCraft/CCKit2.git"
1415 },
1516 "author" : " JackMacWindows" ,
16- "license" : " SEE LICENSE IN LICENSE " ,
17+ "license" : " GPL-2.0-only " ,
1718 "bugs" : {
1819 "url" : " https://github.com/Phoenix-ComputerCraft/CCKit2/issues"
1920 },
Original file line number Diff line number Diff line change @@ -88,6 +88,16 @@ export default class CCTabView extends CCView {
8888 this . setNeedsDisplay ( ) ;
8989 }
9090
91+ public didMoveToSuperview ( ) : void {
92+ super . didMoveToSuperview ( ) ;
93+ for ( let view of this . contentViews ) {
94+ if ( view . window !== this . window ) {
95+ view . window = this . window ;
96+ view . didMoveToSuperview ( ) ;
97+ }
98+ }
99+ }
100+
91101 public draw ( rect : CCRect ) : void {
92102 super . draw ( rect ) ;
93103 let ctx = CCGraphicsContext . current ! ;
You can’t perform that action at this time.
0 commit comments