Results 1 to 3 of 3

Thread: Vbox layout doesn't stretch well

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    810

    Default Vbox layout doesn't stretch well

    It seems that a Vbox layout doesn't stretch well. See the attached image and the fiddle.

    Screen Shot 2016-11-22 at 5.28.33 PM.png

    https://fiddle.sencha.com/#view/editor&fiddle/1l0a
    Github https://github.com/vadimpopa
    Blogging @ : http://vadimpopa.com
    Twitter: @vadimvpopa

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    This is because form fields automatically have a margin-bottom: 5px in a box layout.

    If you add this in the fiddle, you'll see it stretches the to the bottom without a space:

    Code:
    <style>
        .x-vbox-form-item {
            margin-bottom: 0 !important;
        }
    </style>
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha Premium User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    810

    Default

    Ah ok, thanks, my bad, missed that class.
    Github https://github.com/vadimpopa
    Blogging @ : http://vadimpopa.com
    Twitter: @vadimvpopa

Similar Threads

  1. Replies: 1
    Last Post: 13 Dec 2014, 3:47 PM
  2. Collapsible panel in border layout with vbox stretch/flex
    By fabio.policeno in forum Ext: Q&A
    Replies: 5
    Last Post: 17 Oct 2013, 11:39 AM
  3. Vbox Nested Inside Hbox Doesn't Stretch to Fill Vertically
    By markwyner in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 17 Aug 2011, 9:37 AM
  4. vBox layout 'stretch' option not work in border center region
    By tosha. in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 25 Jun 2010, 3:21 AM

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
  •