Skip to content

Commit 740288b

Browse files
committed
adds fix for scrollarea;
1 parent 7a144eb commit 740288b

File tree

3 files changed

+63
-15
lines changed

3 files changed

+63
-15
lines changed

package-lock.json

+49-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"react": "16.9.0"
2323
},
2424
"devDependencies": {
25-
"@nodegui/nodegui": "^0.1.7",
25+
"@nodegui/nodegui": "^0.1.8",
2626
"@types/node": "^12.0.10",
2727
"@types/react-reconciler": "^0.18.0",
2828
"prettier": "^1.18.2",

src/demo.tsx

+13-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,19 @@ const App = () => {
4747
/>
4848
<Button text="Load Image" on={loadButtonHandler} />
4949
</View>
50-
{/* <ScrollArea style={`width:400px;height:400px;`}> */}
51-
<View style={`width: 600px; height:600px;`}>
52-
<Text>Hello</Text>
53-
</View>
54-
{/* </ScrollArea> */}
50+
<ScrollArea style={`width:400px;height:400px;`}>
51+
<View
52+
style={`
53+
min-width: 0;
54+
min-height:0;
55+
height:500px;
56+
width: 500px;
57+
background-color:green;
58+
`}
59+
>
60+
<Text>Hello</Text>
61+
</View>
62+
</ScrollArea>
5563
</View>
5664
</Window>
5765
</>

0 commit comments

Comments
 (0)