Results 1 to 4 of 4

Thread: Table layout stretching content to match table cell

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2015
    Posts
    9

    Default Table layout stretching content to match table cell

    Hi everyone,

    I have a problem with a form like in this example https://fiddle.sencha.com/#fiddle/1ei1 .

    The form has to be rendered in table layout because it's customizable by users and has to be compatible with older version of our application.
    The user can set a width on first input-field. Is there a simple solution for stretching all fields below that are in same column to fit the column-width?


    Thanks for any hint!

    Kind regards
    Robert

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Can you apply the user's width selection to all of the fields?

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    New Jersey
    Posts
    166
    Answers
    11

    Default

    Not sure if I completely understand but you should use the change listener or specialkey (ex. user types in width and hits the enter button) and the fields dynamically change width.

    Here's a fiddle. Hope this helps!
    https://fiddle.sencha.com/#fiddle/1f4j

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2015
    Posts
    9

    Default

    Hey,thanks for reply!

    No, the width of the inputfields is customizable in backend and is send from server.

    There is no need for dynamically change.I could solve this problem manually by taking the first input-width and apply it to all field located in same column. But I'm searching for a more more elegant way to solve it ;-)

    Is there any CSS-magic or layout-stuff that is useful?

Similar Threads

  1. Replies: 3
    Last Post: 5 Feb 2016, 6:08 AM
  2. Replies: 1
    Last Post: 21 Jun 2012, 9:29 AM
  3. Render a panel to a large table cell... monitor resize of table cell
    By mjaomaha in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 14 Apr 2010, 7:43 AM
  4. Icon as Table Cell Content
    By villemustonen in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 1 Aug 2008, 4:46 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
  •