1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    1
    Vote Rating
    0
    glaz666 is on a distinguished road

      0  

    Default TextField disappear in IE when neighbors catch cursor

    TextField disappear in IE when neighbors catch cursor


    Hi!

    I have MultiField and 4 TextFields in it. When one gets cursor, others disappear (or several of them). Here is how it looks (two situations are shown):
    quick_replies.png

    This is only how the appears in IE 8.0.7600

    Here is how I create them:
    Code:
            MultiField<String> quickReplyFields = new MultiField<String>();
            quickReplyFields.setSpacing(SPACING2);
    
            for (int i = 0; i < 4; i++) {
                TextField<String> stringTextField = new TextField<String>();
                stringTextField.setWidth(130);
                quickReplyFields.add(stringTextField);
            }

    I am using gxt version 2.1.1.

    Any clues?

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Question


    Hi, Developer Team,

    I have same disappering problem. and it is really annoying us.

    Did you try to fix this bug? or

    Can you advice us any solutions.
    Website: harunates.com
    Blog: blog.harunates.com
    Feel free to contact me harun@harunates.com

  3. #3
    Sencha User
    Join Date
    Nov 2009
    Posts
    51
    Vote Rating
    0
    smiletolead is on a distinguished road

      0  

    Default


    I verified this in IE 8.7601.17514. Could not reproduce the problem. My GXT version is 2.2.5 and GWT 2.4. Can you provide the complete working sample?

  4. #4
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Thumbs up


    Hi smiletolead,

    When I prepare testcase I noticed that problem coming from button scale medium.

    Medium scale has bug, but small scale no problem. it is working chrome and firefox successfully.

    Entry point:

    Code:
    public class MyEntryPoint implements EntryPoint
    {
        public void onModuleLoad()
        {
            ToolBar bar = new ToolBar();
            Button button = new Button( "Test Button" );
            button.setScale( ButtonScale.MEDIUM );
            bar.add( button );
            bar.add( new MonthChooserField() );
            RootPanel.get().add( bar );
            GXT.hideLoadingPanel( "loading" );
        }
    }


    MultiField class:

    Code:
    import java.util.Date;
    
    
    import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
    import com.extjs.gxt.ui.client.widget.form.MultiField;
    import com.extjs.gxt.ui.client.widget.form.SimpleComboBox;
    import com.google.gwt.i18n.client.DateTimeFormat;
    
    
    @SuppressWarnings( "rawtypes" )
    public class MonthChooserField extends MultiField
    {
        private SimpleComboBox<String> cbMonth;
        private SimpleComboBox<String> cbYear;
        DateTimeFormat formatter = DateTimeFormat.getFormat( "MMMM yyyy" );
        DateTimeFormat monthFormat = DateTimeFormat.getFormat( "MMMM" );
        DateTimeFormat yearFormat = DateTimeFormat.getFormat( "yyyy" );
        
        @SuppressWarnings( "unchecked" )
        public MonthChooserField()
        {
            setFieldLabel( "Tarih" );
            setSpacing( 5 );
            
            cbMonth = new SimpleComboBox<String>();
            cbMonth.setWidth( 80 );
            cbMonth.setAllowBlank( false );
            cbMonth.setTypeAhead( true );
            cbMonth.setForceSelection( true );
            cbMonth.setTriggerAction( TriggerAction.ALL );
            cbMonth.add( "Ocak" );
            cbMonth.add( "Şubat" );
            cbMonth.add( "Mart" );
            cbMonth.add( "Nisan" );
            cbMonth.add( "Mayıs" );
            cbMonth.add( "Haziran" );
            cbMonth.add( "Temmuz" );
            cbMonth.add( "Ağustos" );
            cbMonth.add( "Eylül" );
            cbMonth.add( "Ekim" );
            cbMonth.add( "Kasım" );
            cbMonth.add( "Aralık" );
            add( cbMonth );
            
            cbYear = new SimpleComboBox<String>();
            cbYear.setWidth( 70 );
            cbYear.setAllowBlank( false );
            cbYear.setTypeAhead( true );
            cbYear.setForceSelection( true );
            cbYear.setTriggerAction( TriggerAction.ALL );
            cbYear.add( "2011" );
            cbYear.add( "2012" );
            cbYear.add( "2013" );
            cbYear.add( "2014" );
            add( cbYear );
            
            setValue( new Date() );
        }
        
        public void setValue( Date date)
        {
            String month = monthFormat.format( date );
            String year = yearFormat.format( date );
            cbMonth.setSimpleValue( month );
            cbYear.setSimpleValue( year );
        }
        
        public Date getValue()
        {
            String month = cbMonth.getSimpleValue();
            String year = cbYear.getSimpleValue();
            return formatter.parse( month + " " + year );
        }
        
        /**
         * for validate city and town field at the same time
         */
        @Override
        public boolean isValid( boolean silent)
        {
            cbYear.isValid();
            return super.isValid( silent );
        }
        
        public SimpleComboBox<String> getCbMonth()
        {
            return cbMonth;
        }
        
        public SimpleComboBox<String> getCbYear()
        {
            return cbYear;
        }
    }

    Website: harunates.com
    Blog: blog.harunates.com
    Feel free to contact me harun@harunates.com

  5. #5
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Default Problem solved!

    Problem solved!


    Thanks to Sven,

    multifield.setStyleAttribute("position","static");
    Website: harunates.com
    Blog: blog.harunates.com
    Feel free to contact me harun@harunates.com

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Quote Originally Posted by harun View Post
    Thanks to Sven,

    multifield.setStyleAttribute("position","static");

Similar Threads

  1. [OPEN-850] Can't catch enter key on TextField
    By scottw in forum Ext 3.x: Bugs
    Replies: 12
    Last Post: 15 Oct 2010, 10:12 AM
  2. Cursor Position of a textfield
    By beto in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 8 Jul 2009, 7:00 AM
  3. Cursor not showing in TextField
    By btb in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Sep 2008, 8:54 AM
  4. Cursor never appears in TextField
    By tfleig in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 22 Nov 2007, 2:20 AM

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi