GWT布局面板没有';不要在Firefox中拉伸它的孩子
GWT2.5.1,Firefox 26.0。没有样式,就没有继承 我正在尝试将一个GWT布局面板没有';不要在Firefox中拉伸它的孩子,firefox,gwt,layout,cross-browser,Firefox,Gwt,Layout,Cross Browser,GWT2.5.1,Firefox 26.0。没有样式,就没有继承 我正在尝试将一个小部件添加到LayoutPanel的堆栈中,并期望它在默认情况下填充整个页面。但是在Firefox中,它不起作用文本区域完全没有拉伸,按钮-仅在高度上,而不在宽度上 package foo.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gw
小部件
添加到LayoutPanel
的堆栈中,并期望它在默认情况下填充整个页面。但是在Firefox中,它不起作用<代码>文本区域完全没有拉伸,按钮
-仅在高度上,而不在宽度上
package foo.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.*;
public class HW implements EntryPoint {
public void onModuleLoad() {
Widget childOne = new TextArea();
ComplexPanel p = new LayoutPanel();
p.add(childOne);
Panel rp = RootLayoutPanel.get();
rp.add(p);
}
}
HTML
Web应用程序启动程序项目
*.gwt.xml
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='hw'>
<inherits name='com.google.gwt.user.User'/>
<entry-point class='foo.client.HW'/>
<source path='client'/>
<source path='shared'/>
</module>
这似乎是一个带有已知修复/解决方法的bug(请参阅),但没有人花时间将其作为补丁提交:
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='hw'>
<inherits name='com.google.gwt.user.User'/>
<entry-point class='foo.client.HW'/>
<source path='client'/>
<source path='shared'/>
</module>