Results 1 to 2 of 2

Thread: GMapPanel UX: map doesn't appear when using Card layout

  1. #1
    Ext User
    Join Date
    Oct 2009
    Location
    ??
    Posts
    94

    Default GMapPanel UX: map doesn't appear when using Card layout

    map is doesn't appear/show when using Card layout...

    click event of Card layout to switch to the next screen:
    Code:
    // gis-content-panel: is a Card layout
    // gmap-panel: Border  layout that contains the GMapPanel
    Ext.getCmp('gis-content-panel').layout.setActiveItem('gmap-panel');
    when I resize the internet browser.... the map will show because the resize event will call the layout process...

    so i think, it needs to be refreshed or doLayout or show.... but don't know how to implement....
    ??? - ??
    ???Ext JS 3.1.0?JSP 2.0?Tiles 2.0?Spring MVC 2.5.6.SEC01, FF3.5.7, IE6/7/8

  2. #2
    Ext User
    Join Date
    Oct 2009
    Location
    ??
    Posts
    94

    Default

    modified click event for screen switch of Card layout:
    Code:
    // gis-content-panel: is a Card layout
    // gmap-panel: Border  layout that contains the GMapPanel
    Ext.getCmp('gis-content-panel').layout.setActiveItem('gmap-panel');
    Ext.getCmp('gmap-panel').doLayout();
    and it seems to be ok...

    but is this the best practice? or there is other better approach?
    ??? - ??
    ???Ext JS 3.1.0?JSP 2.0?Tiles 2.0?Spring MVC 2.5.6.SEC01, FF3.5.7, IE6/7/8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •