File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 117117 onpaletteadd : function ( ) {
118118 //setup swagger-ui
119119 var swaggerUi ;
120- var refreshInfoHeight = 75 ;
121120 var content = $ ( "<div/>" , {
122121 id :"tab-swagger-ui" , style :"position: relative; padding: 0px 4px; height: 100%; overflow: hidden"
123122 } ) ;
124- var refreshInfo = $ ( "<div/>" , {
125- style :"height: " + refreshInfoHeight + "px; margin: 5px; text-align: center"
126- } ) ;
127123
128124 RED . events . on ( "deploy" , function ( ) {
129125 if ( swaggerUi ) {
146142 swaggerFrame . load ( function ( ) {
147143 swaggerUi = document . getElementById ( 'swagger-ui-frame' ) . contentWindow . swaggerUi ;
148144 window . addEventListener ( 'resize' , function ( event ) {
149- swaggerFrame . css ( 'height' , content . height ( ) - refreshInfoHeight - 45 ) ;
145+ swaggerFrame . css ( 'height' , content . height ( ) ) ;
150146 } ) ;
151- swaggerFrame . css ( 'height' , content . height ( ) - refreshInfoHeight - 45 ) ;
147+ swaggerFrame . css ( 'height' , content . height ( ) ) ;
152148 swaggerUi . load ( ) ;
153149 } ) ;
154150 } ,
You can’t perform that action at this time.
0 commit comments