Results 1 to 9 of 9

Thread: Grid layout trouble

  1. #1

    Default Grid layout trouble

    Hi folks,

    I have mentioned now and then here that I have some problems with my grid to behave correctly in regards to layout. I had somehow hoped that those problems would miraculously vanish on one of the updates, but so far in vain
    I have a BorderLayout and the grid forms the content of the center pane. Troubles start when the grid doesn't fit into the panel. Here is a screenshot of what happens when I first load my app:


    http://img155.imageshack.us/my.php?i...troubletp5.jpg

    As you can see the grid doesn't fit horizontally, so a scroll bar appears, but it overlays the grid itself. Also an (unnecessary) wrongly positioned vertical scrollbar appears. If I resize the browser viewport (opening FireBug comes to mind ), the grid stays as is and the lower part just disappears.
    I can "fix" that by using autoScroll: true for the panel, but then the whole (oversized) grid is scrolled within the panel. What I want is the grid to manage scrolling like in the paging example (ie only scrolling the contents without header and paging footer).
    As I'm at my wit's (and limitied JS knowledge's) end, I'm open for any input/help/comment :?

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    What's you doc type and what browser is the problem in?

  3. #3

    Default

    Firefox 2.0.0.2 and originally
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    after I read your post I also tried
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/DTD/loose.dtd">
    and xhtml transitional, but it still looks the same.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    No sure, let me investigate.

  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Are you putting the grid in a ContentPanel, or creating a GridPanel from the grid?

  6. #6

    Default

    Quote Originally Posted by Animal
    Are you putting the grid in a ContentPanel, or creating a GridPanel from the grid?
    Currently the grid is attached to a separate div within the div used for the panel.
    I've tried to attach the grid to the same div that I used to create the panel, but the effect was the almost the same, only the horizontal scrollbar that should be there is gone now (probably overwritten by a content refresh). The vertical bar (that shouldn't be there) is still there and positioned as seen in the screenshot.

  7. #7
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    Nice question Animal! You need to use a GridPanel or you are in charge of fixing all the stuff that a GridPanel does. Did you implement all that stuff?

  8. #8

    Default

    AAAH! I had missed GridPanel :oops:

    It still doesn't work, but need to investigate first whether something I did to try to fix the problem now messes things up. Thanks a lot.

  9. #9

    Default

    After upgrading to rev4 and fiddeleing with the order of setting things up everything works perfectly!
    Thanks again!

Similar Threads

  1. trouble passing grid info via seletionchange
    By pjordan in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 16 Mar 2007, 4:33 AM
  2. Trouble adding rows to grid manually.
    By kjordan in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 9 Mar 2007, 3:22 PM
  3. trouble with height size of the tab and layout...
    By seeker in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 19 Feb 2007, 8:14 AM
  4. trouble using Grid and LayoutDialog with a grid?
    By franklt69 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 3 Feb 2007, 4:25 PM
  5. Trouble getting started with Grid and XML
    By Rich in forum Ext 1.x: Help & Discussion
    Replies: 15
    Last Post: 18 Nov 2006, 4:45 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
  •