File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Resizing of the Layouts is not proper. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Resizing of the Layouts is not proper." Watch "Resizing of the Layouts is not proper." New topic

Resizing of the Layouts is not proper.

Rahul Anan

Joined: Oct 20, 2013
Posts: 1
I am facing the different issue, whenever i am trying to resize the contents of my window it is not getting resized. I also tried the Resize Handler way as suggested above.

As we can see there is two components SnapshotChooserView and RunLogGrid and i have made it collapsible.
So, that when i make the SnapshotChooserView collapsed, then all the space should be occupied by the RunLogGrid and when i collape the RunLogGrid all the other space should be occupied by the SnapshotChooserView.

Can anyone help to figure this out.

public class RunView implements IsWidget {

// Client factory
private ClientFactory iClientFactory;

// Main Container
private BorderLayoutContainer borderLayoutContainer;

// Components
private SnapshotChooserView snapshotChooserView;

// Components
private RunLogGrid runLogGrid;

ContentPanel north;

ContentPanel south;

ResizeHandler handler1;

ResizeHandler handler2;

// ---- CONSTRUCTORS ----

public RunView() {

public RunView(ClientFactory aClientFactory) {

iClientFactory = aClientFactory;

borderLayoutContainer = new BorderLayoutContainer();

snapshotChooserView = iClientFactory.getSnapshotChooserView();
runLogGrid = new RunLogGrid(iClientFactory);

final double SnapshotChooserHeight = 500;
final int RunLogGridHeight = 350;

handler1 = new ResizeHandler(){
public void onResize(ResizeEvent event) {

handler2 = new ResizeHandler(){
public void onResize(ResizeEvent event) {

north = new ContentPanel();
north.setHeadingText("Run Details");
// north.forceLayout();

south = new ContentPanel();
south.setHeadingText("Run Log Info");
// south.forceLayout();

BorderLayoutData northData = new BorderLayoutData(SnapshotChooserHeight);
northData.setMargins(new Margins(2, 2, 2, 2));

BorderLayoutData southData = new BorderLayoutData(RunLogGridHeight);
southData.setMargins(new Margins(2, 2, 2, 2));

// borderLayoutContainer.addResizeHandler(handler1);
// borderLayoutContainer.addResizeHandler(handler2);

borderLayoutContainer.setNorthWidget(north, northData);
borderLayoutContainer.setSouthWidget(south, southData);


* @see RunLogGrid::TriggerGridReload
public void triggerRunGridRefresh() {

* (non-Javadoc)
* @see
public Widget asWidget() {
return borderLayoutContainer;
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10825

Please do not quote your original post to bump the topic. If you haven't received any answer, most probably because people do not know how to fix it, or (as in my case) I do not use Sencha GXT

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Resizing of the Layouts is not proper.
jQuery in Action, 3rd edition