1

2つのContentPanel(水平方向)を含むウィンドウがあります。1つは画像が含まれ、もう1つはテキストが含まれています。問題は、私のテキストが切り捨てられていることです:それはウィンドウの外に出ています...

Window win = new Window();
win.setLayout( new FillLayout() );
win.setMinWidth( 250 );
win.setHeight( 120 );

ContentPanel content = new ContentPanel( new RowLayout( Orientation.HORIZONTAL ) );
ContentPanel iconePanel = new ContentPanel( new FillLayout() );
iconePanel.add(myImage);
content.add( iconePanel, new RowData( 48, 1 ) );

Text textPanel = new Text();
textPanel.setText( msg );
content.add( textPanel, new RowData( -1, 1 ) );
win.add( content );
win.show();

パネルにテキストを保持するにはどうすればよいですか?

4

1 に答える 1

1

GXTのさまざまなパネルをよく理解している必要があります。パディングのサイズを調整することで別のトリックがあります。Firebugを使用し、Firebugを使用してレイアウトを調整することをお勧めします。これは、ウィンドウの調整に大いに役立ちます。

于 2012-10-16T15:24:42.487 に答える