| | |
| | | let ratio = curDframe.width/curDframe.height; |
| | | if(curDframe.name == 'cameraAccess' || curDframe.name == 'dataStack' || curDframe.name == 'library' || curDframe.name == 'analysisPower' || curDframe.name == 'cameraVideo'){ |
| | | //处理富余高度大于140的窗口 |
| | | if(window.screen.availHeight - curDframe.height > 120){ |
| | | if(window.screen.availHeight - curDframe.height > 140){ |
| | | dframe.height = (window.screen.availHeight - curDframe.height)/2 + curDframe.height - 50; |
| | | dframe.width = dframe.height*ratio; |
| | | } |
| | |
| | | |
| | | state.framesOrder = order; |
| | | state.framesOffset = offset; |
| | | debugger |
| | | state.frames.push(dframe); |
| | | |
| | | return true; |