Results 1 to 2 of 2

Thread: How to render viewport in a specific part of an html page

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    10

    Default How to render viewport in a specific part of an html page

    Hi there,
    As I searched through the forum I found that It's not possible to render a viewport in a specific part of my html page with renderTo property. So I tried to transform my viewport to a panel. It works but It doesn't have the functionalities of the viewport. I want to have a view which fit's to my page automatically whenever the user resizes his browser. But as I found out, Panel fits it's childrens just at the load event.
    Is there any other solution to fulfill my requirement?

    Thanks,

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716

    Default

    Have a look at Ext.EventManager.onWindowResize(panel.doLayout, panel);

    The panel should follow along in the div.

    Scott.

Tags for this Thread

Posting Permissions

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