HZGN.COM
welcome to my space
X
Welcome to:hzgn.com
Search:  
NAVIGATION: Home >>

[SOLVED PARTLY] Mixing labelAlign and trouble with width...

Published by: rose 2009-01-07

  • enart.chinamulti.com - Archives 20070601 - Powered by chcms::
    [SOLVED PARTLY] Mixing labelAlign and trouble with width It would be great if it give labeAlign to the item directly I'd like a form with input text
    http://enart.chinamulti.com/recentpostarticle.php?d=20070601
    HOME
    It would be great if it give labeAlign to the item directly...

    I'd like a form with input text and textarea to look like this:

    name:
    comment:


    Is there any way to do this? Because otherwise the textarea gets very narrow...

    Also I have trouble with "defaults: {width: 230}" and "width:400". The textarea uses the default over the defined with, which works just fine with the textfield

    Thanks a lot...

    From the example:

    var simple = new Ext.FormPanel({
    labelWidth: 75, // label settings here cascade unless overridden
    url:'save-form.php',
    frame:true,
    title: 'Simple Form',
    bodyStyle:'padding:5px 5px 0',
    width: 550,
    defaults: {width: 230},
    FLTK 1.0.11 Programming Manual::
    File Format: Adobe PostScriptUnder X this returns 2 if the rectangle is partially clipped, and 1 if it is entirely redrawing, but that can be solved by using a Fl_Double_Window.
    http://www.fltk.org/doc-1.0/fltk.ps.gz
    HOME
    defaultType: 'textfield',

    items: [{
    fieldLabel: 'Name',
    width:350
    }, new Ext.form.TextArea({
    allowBlank:false,
    fieldLabel:"Comment",
    value:"My Textrnmore text",
    width:400
    Ext JS Forums - Search Results::
    [SOLVED PARTLY] Mixing labelAlign and trouble with width Views: 163. Posted By Condor · Here is the same form without special.
    http://www.yui-ext.net/forum/search.php?searchid=6215200
    HOME
    Ext: Help - Page 933 - Ext JS Forums::
    [SOLVED PARTLY] Mixing labelAlign and trouble with width KajaSheen ยท 01-18- 2008 06:19 PM. 01-19-2008 08:15 AM by Condor Go to last post
    http://www.yui-ext.net/forum/forumdisplay.php?f=9&order=desc&page=933
    HOME
    })

    ],

    buttons: [{
    text: 'Save'
    },{
    text: 'Cancel'
    }]
    });

    simple.render(document.body);


  • Here is the same form without special markup:

    var simple = new Ext.FormPanel({
    url:'save-form.php',
    frame:true,
    title:'Simple Form',
    bodyStyle:'padding:5px 5px 0',
    width:650,
    defaults:{
    layout:'form',
    defaultType:'textfield',
    labelWidth:75,
    },
    items:[{
    items:[{
    fieldLabel:'Name',
    width:320
    }]
    },{
    labelAlign:'top',
    items:[{
    xtype:'textarea',
    allowBlank:false,
    fieldLabel:"Comment",
    value:"My Textrnmore text",
    width:400
    }]
    }],
    buttons:[{
    text:'Save'
    },{
    text:'Cancel'
    }]
    });
    simple.render(document.body);


  • Ok, a couple of hours later I figured out a way to display my textfield like I want to, but it is far from perfect and the width problem remains...

    Added an itemCls and a cls to the textArea. And a couple of styles to the file.


    var simple = new Ext.FormPanel({
    labelWidth: 75, // label settings here cascade unless overridden
    url:'save-form.php',
    frame:true,
    title: 'Simple Form',
    bodyStyle:'padding:5px 5px 0',
    defaults: {width: 230},
    width: 650,

    defaultType: 'textfield',

    items: [{
    fieldLabel: 'Name',
    width: 325,
    }, new Ext.form.TextArea({
    allowBlank:false,
    fieldLabel:"Comment",
    value:"My Textrnmore text",
    width: 400,
    itemCls: 'ux-label-top',
    cls: 'textarea'
    })

    ],

    buttons: [{
    text: 'Save'
    },{
    text: 'Cancel'
    }]
    });

    simple.render(document.body);



    .ux-label-top label{width:auto;float:none;clear:none;display:inl ine;margin-bottom:4px;position:static;}
    .ux-label-top .x-form-element{padding-left:0 !important;padding-top:4px;}
    .ux-label-top .x-form-item{padding-bottom:4px;}
    .ux-label-top .textarea {width: 397px !important; height: 200px !important;}





  • Red Hat's Rough Recovery From CFO Exit
    Windows Live Finds a New, Pre-installed Home

    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED PARTLY] Mixing labelAlign and trouble with width... , Please add it free.
  • how long does it take to learn how to tumble
  • are you lost in life
  • who wrote cell and would you reccomend it
  • help with tap dance songs
  • need to find pink or black lace up ballet shoes not ballet flates the ones you dance in size 3 4 or 5 thanks
  • is it to late to do ballet
  • what qualifications are needed to realize your true nature are there any
  • hey we 039 re doing a lyrical hip hop with apologize by one republic help
  • too old to begin ballet
  • nothing is more difficult than any other thing to study and understand what is your opinion
  • where do i get a silk screen printer
  • only for ballet dancers who have been doing ballet consecutively without stopping and starting
  • what songs make you feel happy
  • the star wars or matrix universe which one would you prefer

  • who sings the remix of hips dont lie on dirty dancing havana nights
  • what kind of font is in the antm credits
  • neek is a word my 10 yr old son picked up from school what does it mean
  • did the gypsies create flamenco
  • my college doesn 039 t offer the drama a level will i still be able to do drama at university
  • jabbawockeez and supercr3w
  • what is needed to let go of the illusion the storyline and the idea of separation
  • can you recommend some books for me
  • for all bloch users out there you are needed to answer my silly question
  • i was dancing with my boss at the xmas party and he clearly had a rocket
  • dancing dancing dancing
  • how to sew ribbons to pointe shoes
  • funny twilight book quotes
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hzgn.com        Site made:CFZ