当前位置:网站首页>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 
边栏推荐
- Signal integrity (SI) power integrity (PI) learning notes (XXV) differential pair and differential impedance (V)
- 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
- Tiktok actual combat ~ sorting out the short video release process
- Common redis commands in Linux system
- Enterprise level ~uni app network request encapsulation
- 使用网络摄像头进行眼睛注视估计
- Tiktok practice ~ upload and release app video
- JDBC —— 数据库连接
- Ott marketing is booming. How should businesses invest?
- vim使用命令
猜你喜欢

C# Winform 最大化遮挡任务栏和全屏显示问题

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

机器学习自学成才的十条戒律

Do280openshift access control -- encryption and configmap

Collective例子

The new employee of the Department after 00 is really a champion. He has worked for less than two years. The starting salary of 18K is close to me when he changes to our company

Laravel framework knowledge

Eye gaze estimation using webcam

Tremblement de terre réel ~ projet associé unicloud

Ansible及playbook的相关操作
随机推荐
Hello C (III) - pointer
C program design topic 18-19 final exam exercise solutions (Part 2)
Andersen global strengthens the Middle East platform with Palestinian member companies
同济、阿里获CVPR最佳学生论文,李飞飞获黄煦涛奖,近6000人线下参会
Sitelock helps you with the top ten common website security risks
Current situation analysis and development trend prediction report of hesperidase industry in the world and China from 2022 to 2028
Time unified system
Leetcode No.10 regular expression matching
Hibernate learning 2 - lazy loading (delayed loading), dynamic SQL parameters, caching
ArcGIS加载免费在线历史影像作为底图(不需要插件)
Overview of medium and low speed aerospace electronic bus
Tremblement de terre réel ~ projet associé unicloud
Ultra vires vulnerability & Logic vulnerability (hot) (VIII)
Hello C (VII) - structure
软件测试与游戏测试文章合集录
Wx applet jump page
Analysis report on the development trend and Prospect of cetamide industry in the world and China from 2022 to 2028
走近Harvest Moon:Moonbeam DeFi狂欢会
Laravel framework knowledge
MySQL日志管理