View unanswered posts | View active topics It is currently 2021-12-05 19:17



Reply to topic  [ 4 posts ] 
 求助:如何让鹰眼视图外边框始终与容器div保持同样大小 
Author Message
新手上路

Joined: 2021-03-03 18:12
Posts: 5
Post 求助:如何让鹰眼视图外边框始终与容器div保持同样大小
我的鹰眼overview放在一个DIV中,但是overview的外边框即overview的大小会随着network元素的布局而变化,如何让overview始终保持填充满整个容器div?
大概知道可以通过锁定长宽比做到,但是鹰眼的长宽比跟network网元位置变化而变化,大概测试结果是长和宽都是相应坐标轴上最远距离网元所对应的在坐标轴上的坐标。


Attachments:
无标题.png
无标题.png [ 17.21 KiB | Viewed 2912 times ]
2021-03-04 10:50
Profile
TWaver开发组
User avatar

Joined: 2017-02-22 10:01
Posts: 485
Post Re: 求助:如何让鹰眼视图外边框始终与容器div保持同样大小
你是想让这2个的高度相等?


Attachments:
微信图片_20210304165750.png
微信图片_20210304165750.png [ 4.78 KiB | Viewed 2903 times ]
2021-03-04 16:58
Profile
新手上路

Joined: 2021-03-03 18:12
Posts: 5
Post Re: 求助:如何让鹰眼视图外边框始终与容器div保持同样大小
可以这么说,就是让鹰眼内层和div容器的大小保持一致


2021-03-04 18:06
Profile
TWaver开发组
User avatar

Joined: 2017-02-22 10:01
Posts: 485
Post Re: 求助:如何让鹰眼视图外边框始终与容器div保持同样大小
这个固定不了,默认overview的大小是整个画布也就是所有网元viewRect的交集,肯定会随着画布网元的变化而变化的。


2021-03-08 10:17
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron