TextArea でソース コードを受け取り、それをリモート コンパイラに送信し、アセンブリ言語の出力とコンパイラ エラーを他の TextArea に表示する単純な GWT アプリがあります。以下のコードは Safari と Chrome では問題なく動作しますが、Firefox では TextAreas と Buttons がパネルを埋めるようにサイズ変更されていません。ウィジェットのサイズを手動で 100% に設定できます。ほぼ問題ありませんが、重要な CSS 知識が欠けていることは確かです。ドキュメント タイプを厳密な HTML4 DTD ("http://www.w3.org/TR/html4/strict.dtd") に設定しています。アプリはhttp://ferret.granberrys.us:8080/Compiler.htmlで実行されています。
RootLayoutPanel rootPanel = RootLayoutPanel.get();
DockLayoutPanel panel = new DockLayoutPanel(Unit.EM);
codeArea = new TextArea();
codeArea.setText("int main() {return 0};");
DockLayoutPanel outputPanel = new DockLayoutPanel(Unit.EM);
ListBox compiler = new ListBox();
compiler.addItem("Clang/LLVM");
outputPanel.addNorth(compiler, 2);
assemblyArea = new TextArea();
assemblyArea.setText("Asm");
Button compileButton = new Button();
compileButton.setText("Compile");
outputPanel.addSouth(compileButton, 2);
outputPanel.add(assemblyArea);
panel.addEast(outputPanel, 20);
compilerOutput = new TextArea();
compilerOutput.setReadOnly(true);
compilerOutput.setText("Compiler");
//panel.addWest(codeArea, 800);
panel.addSouth(compilerOutput, 10);
panel.add(codeArea);
rootPanel.add(panel);