Results 1 to 3 of 3

Thread: Setting height of Porlets in Portal Demo doesn't work

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    25

    Default Setting height of Porlets in Portal Demo doesn't work

    Hello,

    I am implementing a portal using Ext.ux.Portlet.
    The portlets should fit exactly into the browser, they shouldn't overflow and they also shouldn't be smaller than the available height of the browser.
    Thus, I tried to set the height for the portlets after throwing the ondrop event. For any reason I cant' set the height of the portlet that gets dropped. But I can change the height for the portlets I didn't drop.
    While dropping the portlet's height is '0', after dropping it has any value but not the value I was trying to set.

    Does anybody know why I can't change the height of a portlet or how I could fix it?
    Thanks a lot

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    are you saying somePortlet.setHeight(200) does not work?

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    25

    Default

    Quote Originally Posted by [email protected] View Post
    are you saying somePortlet.setHeight(200) does not work?
    Yes that's what I meant.

    But after trying a while I figured out that it is like this:

    I have a portlet with 2 columns. Each column contains 1 portlet.
    Then I drop one portlet so that I got 2 portlets in the first column and 0 portlets in the second column.
    Now I switch one portlet back into the second column, so that each column contains 1 portlet again.
    I set heigh tto 200 for both portlets. Now, the portlet I dropped has the height of 200px (without the title). The portlet that wasn't dropped has a height of 177px (with title = 200).

    Code:
    portal.on('drop', onDrop);
    
    function onDrop()  {
        portlet1.setHeight(200);
        portlet2.setHeight(200);
    }
    I am wondering that the panels do not have the same height.

Similar Threads

  1. Explorer demo doesn't work behind a proxy
    By zaccret in forum Ext GWT: Help & Discussion (1.x)
    Replies: 24
    Last Post: 30 Oct 2008, 1:01 AM
  2. [CLOSED] TreeTable Explorer demo doesn't work
    By Alex.Leshkin in forum Ext GWT: Bugs (1.x)
    Replies: 2
    Last Post: 9 Sep 2008, 7:46 AM
  3. How do I remove borders from porlets in portal
    By iver25 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 30 May 2008, 4:12 AM
  4. Grid demo doesn't work in IE7?
    By stevefink in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 1 Sep 2007, 4:53 PM

Posting Permissions

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