2

有没有办法覆盖溢出:从 LayoutPanel 的层中隐藏?这就是我所拥有的:

   <g:LayoutPanel>  
    <g:layer height="20px" bottom="0px" right="0px" width="70px" style="overflow:visible;">
    <g:Anchor styleName="{style.helpLink}" ui:field="helpL">Help</g:Anchor>
    </g:layer>
   </g:LayoutPanel>

我无法将 ui:field 分配给图层元素,并且上面的内联样式显然不起作用。我需要为该特定图层分配溢出:可见。有什么解决方法吗?

太感谢了。

4

1 回答 1

2

您将不得不深入到 DOM 级别。

你可以这样做:helpL.getElement().getParentElement().getStyle().setOverflow( Overflow.VISIBLE );在你的小部件加载之后。

于 2011-10-20T05:06:10.807 回答