Results 1 to 4 of 4

Thread: Using Ext.form.field.Picker

  1. #1
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139

    Default Using Ext.form.field.Picker

    I want to use Ext.form.field.Picker like Ext.form.field.Date.
    To do this, first I try to make color pickerfield for example.

    I can display the color picker if viewport layout is 'auto',
    http://jsfiddle.net/mashiki/nP7Zr/9/

    but I cannot do this if viewport layout is 'card' or 'vbox'.
    http://jsfiddle.net/mashiki/nP7Zr/10/

    Why?

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585

    Default

    It'll work if you add:

    Code:
    floating: true,
    minHeight: 90,
    You may also want to tweak the shadow, e.g.:

    Code:
    shadow: false,
    Didn't really dig into why it wasn't working. The color picker was being shown off the bottom of the viewport. From trying the 'working' example you provided it looked to me like that wasn't really working either, it was coincidence that there was nothing to push the color picker down. In a real app I suspect neither would have worked.

  3. #3
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139

    Default

    Thank you for your help.

    Now it works even if it is on vbox on card with field label.
    http://jsfiddle.net/mashiki/nP7Zr/15/

    My goal is to make a software 10 key to input numbers for touch panel display.

    First I use Trigerfiled and window. It worked fine in a form, bat not in editor grid.
    ????????? 2012-03-03 0.53.03.png

    So I'm trying picker. Goal is far, bat I can try next step.

  4. #4
    Sencha User mashiki's Avatar
    Join Date
    Oct 2007
    Location
    Japan
    Posts
    139

    Default

    Now I get final one.

    http://jsfiddle.net/nP7Zr/18/

    Thanks, skirtle.

Posting Permissions

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