File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1616 },
1717 "scripts" : {
1818 "build" : " tsc" ,
19- "dev" : " tsc && qode ./dist/demo.js" ,
19+ "dev" : " tsc && qode --inspect ./dist/demo.js" ,
2020 "docs" : " typedoc"
2121 },
2222 "dependencies" : {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const setImageProps = (
2121 const pixMap = new QPixmap ( imageUrl ) ;
2222 widget . setPixmap ( pixMap ) ;
2323 const size = widget . size ( ) ;
24- widget . scalePixmap ( size . width , size . height ) ;
24+ widget . scalePixmap ( size . width ( ) , size . height ( ) ) ;
2525 } ,
2626 set aspectRatioMode ( mode : AspectRatioMode ) {
2727 widget . setAspectRatioMode ( mode ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ImageConfig extends ComponentConfig {
1818 widget . setProps ( newProps , { } ) ;
1919 widget . addEventListener ( QLabelEvents . Resize , ( ) => {
2020 const size = widget . size ( ) ;
21- widget . scalePixmap ( size . width , size . height ) ;
21+ widget . scalePixmap ( size . width ( ) , size . height ( ) ) ;
2222 } ) ;
2323 return widget ;
2424 }
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export interface ViewProps extends RNProps {
6565 /**
6666 * This property holds the level of opacity for the window. [QWidget: setWindowOpacity](https://docs.nodegui.org/docs/api/NodeWidget#widgetsetwindowopacityopacity)
6767 */
68- windowOpacity ?: Number ;
68+ windowOpacity ?: number ;
6969 /**
7070 * Sets the window title property. [QWidget: setWindowTitle](https://docs.nodegui.org/docs/api/NodeWidget#widgetsetwindowtitletitle)
7171 */
@@ -146,7 +146,7 @@ export const setViewProps = (
146146 set enabled ( enable : boolean ) {
147147 widget . setEnabled ( enable ) ;
148148 } ,
149- set windowOpacity ( opacity : Number ) {
149+ set windowOpacity ( opacity : number ) {
150150 widget . setWindowOpacity ( opacity ) ;
151151 } ,
152152 set windowTitle ( title : string ) {
Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ const HostConfig: Reconciler.HostConfig<
101101 container . add ( child ) ;
102102 } ,
103103 removeChildFromContainer : ( container , child ) => {
104+ container . delete ( child ) ;
104105 if ( child . close ) {
105106 child . close ( ) ;
106107 }
107- container . delete ( child ) ;
108108 } ,
109109 prepareUpdate : function (
110110 instance ,
@@ -152,6 +152,9 @@ const HostConfig: Reconciler.HostConfig<
152152 } ,
153153 removeChild : ( parent : RNWidget , child : NodeWidget ) => {
154154 parent . removeChild ( child ) ;
155+ if ( child . close ) {
156+ child . close ( ) ;
157+ }
155158 } ,
156159 commitTextUpdate : ( textInstance , oldText , newText ) => {
157160 //noop since we manage all text using Text component
You can’t perform that action at this time.
0 commit comments