Skip to content

Commit d19ec1b

Browse files
committed
Feat: resize cloud code text box
1 parent d8cead6 commit d19ec1b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/components/B4ACodeTree/B4ACodeTree.react.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,26 @@ export default class B4ACodeTree extends React.Component {
175175
onClick={this.deleteFile.bind(this)}
176176
/>
177177
</div>
178-
<div className={styles['files-text']}>
178+
<Resizable className={styles['files-text']}
179+
defaultSize={{ height: '367px', width: '100%' }}
180+
enable={{
181+
top:false,
182+
right:false,
183+
bottom:true,
184+
left:false,
185+
topRight:false,
186+
bottomRight:false,
187+
bottomLeft:false,
188+
topLeft:false
189+
}}>
179190
{
180191
this.state.isImage ?
181192
<img src={this.state.source} /> :
182193
<B4ACloudCodeView
183194
source={this.state.source || "Select a file to view your Cloud Code"}
184195
extension={this.state.extension} />
185196
}
186-
</div>
197+
</Resizable>
187198
</div>
188199
</div>
189200
</div>

0 commit comments

Comments
 (0)