简体   繁体   English

vSphere Web客户端的自定义插件中的AngularJS UI呈现问题

[英]AngularJS UI Rendering issue in custom plugin of vSphere web client

We are developing user custom for vmware's vSphere web client with the help of vSphere client SDK 6.0. 我们正在借助vSphere客户端SDK 6.0为vmware的vSphere Web客户端开发用户自定义。

We have use html-bridge (AngularJS) to develop a UI for plugin and we are facing rendering issue of UI for one specific scenario. 我们使用html-bridge(AngularJS)为插件开发UI,我们面临着一个特定场景的UI渲染问题。

Image 1: This window belongs to vCenter. 图1:此窗口属于vCenter。 If I select any drop down it will not impacting the remaining part of the screen. 如果我选择任何下拉菜单,它将不会影响屏幕的剩余部分。 在此输入图像描述

Image 2: This window we have created in AngularJS with the help of html-bridge. 图2:我们在AngularJS中借助html-bridge创建的这个窗口。 在此输入图像描述

Image 3: If I am working on our custom window and selecting any drop own which is not a part of our custom window ( They belongs to component of vCenter and I have highlighted with arrow ). 图3:如果我正在处理我们的自定义窗口并选择不属于我们自定义窗口的任何drop own( 它们属于vCenter的组件,我用箭头突出显示 )。 Then all content of our window will get disappeared. 然后我们窗口的所有内容都会消失。 在此输入图像描述

Can we avoid this issue? 我们可以避免这个问题吗?

Please advice. 请指教。

This is an inherent problem of how Flash player shows HTML content. 这是Flash播放器如何显示HTML内容的固有问题。 The HTML content you are showing in your plugin's view is nested in an IFrame which is essentially a native OS window in which your content is drawn. 您在插件视图中显示的HTML内容嵌套在IFrame中,IFrame本质上是一个本机操作系统窗口,用于绘制内容。 The Flash content of the web client is drawn in a separate native window that has a lower z-index than the IFrame window. Web客户端的Flash内容在单独的本机窗口中绘制,该窗口的z-index低于IFrame窗口。 Since Flash popups (the menu in your screenshot, for example) is not drawn in its dedicate window but in the Flash player's one, it cannot float on top of the IFrame window (your content). 由于Flash弹出窗口(例如,屏幕截图中的菜单)并未在其专用窗口中绘制,而是在Flash播放器中,因此它不能浮动在IFrame窗口(您的内容)之上。 Thus if the IFrame is not hidden, you'll "see" the pull-down menu going behind your plugin's view. 因此,如果IFrame未被隐藏,您将“看到”插件视图后面的下拉菜单。

There is no proper workaround to this limitation. 此限制没有正确的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM