当前位置:网站首页>UE4 WebBrowser chart cannot display problems
UE4 WebBrowser chart cannot display problems
2022-06-25 00:08:00 【foenix66】
UE4 WebBrowser Charts cannot show problems
Strange question
UE4 Built in WebBrowser Show web page , Other parts are normal , Only the chart on the page (echarts) Unable to display .
Various browser tests are normal , take UE4 The output to the mobile terminal is also displayed normally , only PC Can't show .
It is normal for the test to load other people's chart pages , Can be determined webbrowser Is able to support web charts . After a series of twists and turns , Upgrade web plugin , Finally write the simplest chart page , Finally, it is normal 
Final test
Through the following code
$(document).ready(function () {
alert(window.innerWidth + "*" + window.innerHeight);
});
It turns out that the problem is PC Of WebBrowser Plug in on Web page ondocumentready when , The page size is 0x0. If echarts Of dom object css Yes press fixed px Size setting , It can be displayed normally , Follow the page % Set up , It won't show ( because ondocumentready The page size is 0x0)
terms of settlement
Add the following... To the web page javascript Script
window.addEventListener('resize', myChart.resize);
WebBrowser After loading, the page size will be reset according to the layout size , After setting to normal browser size , Reset chart The size of the 
边栏推荐
- Common redis commands in Linux system
- Opengauss kernel: simple query execution
- Signal integrity (SI) power integrity (PI) learning notes (XXV) differential pair and differential impedance (V)
- 浅析大型IM即时通讯系统开发难度
- The living standards of ordinary people
- 信号完整性(SI)电源完整性(PI)学习笔记(二十五)差分对与差分阻抗(五)
- JPA学习1 - 概述、JPA、JPA核心注解、JPA核心对象
- Current situation analysis and development trend forecast report of global and Chinese acrylonitrile butadiene styrene industry from 2022 to 2028
- 抖音實戰~項目關聯UniCloud
- After 5 years of software testing in didi and ByteDance, it's too real
猜你喜欢

It's 2022, and you still don't know what performance testing is?

JPA learning 2 - core annotation, annotation addition, deletion, modification and query, list query result return type, one to many, many to one, many to many

DO280OpenShift访问控制--加密和ConfigMap

Hello C (I) -- basics of C language

水库大坝安全监测

wx小程序跳转页面

Dynamic effect of canvas lines

无人驾驶: 对多传感器融合的一些思考

Tape SVG animation JS effect

Monotone stack and its application
随机推荐
节奏快?压力大?VR全景客栈带你体验安逸生活
How to use stm32subeide SWV function
[interview question] the difference between instancof and getclass()
Svg+js keyboard control path
Analysis report on development trend and investment forecast of global and Chinese D-leucine industry from 2022 to 2028
【面试题】instancof和getClass()的区别
C program design topic 15-16 final exam exercise solutions (Part 1)
教程详解|在酷雷曼系统中如何编辑设置导览功能?
On the difficulty of developing large im instant messaging system
抖音實戰~項目關聯UniCloud
信号完整性(SI)电源完整性(PI)学习笔记(一)信号完整性分析概论
Is there really something wrong with my behavior?
wx小程序跳转页面
Report on operation mode and future development trend of global and Chinese propenyl isovalerate industry from 2022 to 2028
走近Harvest Moon:Moonbeam DeFi狂欢会
Dynamic effect of canvas lines
Current situation analysis and development trend forecast report of global and Chinese acrylonitrile butadiene styrene industry from 2022 to 2028
Tutorial details | how to edit and set the navigation function in the coolman system?
linux 系统redis常用命令
Outer screen and widescreen wasted? Harmonyos folding screen design specification teaches you to use it