File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
streamlit_condition_tree/frontend/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,6 @@ class ConditionTree extends StreamlitComponentBase<State> {
55
55
public constructor ( props : ComponentProps ) {
56
56
super ( props ) ;
57
57
58
- console . log ( AntdConfig )
59
-
60
58
const config : Config = {
61
59
...defaultConfig ,
62
60
...props . args [ 'config' ]
@@ -116,6 +114,14 @@ class ConditionTree extends StreamlitComponentBase<State> {
116
114
. querySelectorAll ( '.rule_group>.group--children:has(> :nth-child(1):last-child)' )
117
115
. forEach ( ( x ) => x . classList . add ( 'single-child' ) )
118
116
117
+ this . setHeight ( )
118
+ }
119
+
120
+ componentDidMount = ( ) => {
121
+ this . setHeight ( )
122
+ }
123
+
124
+ private setHeight = ( ) => {
119
125
// Set frame height
120
126
const height = Math . max (
121
127
document . body . scrollHeight + 20 ,
You can’t perform that action at this time.
0 commit comments