Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 361051 | Differences between
and this patch

Collapse All | Expand All

(-)js/qx/ui/form/TextField.js (-11 / +18 lines)
Lines 851-873 Link Here
851
     * @type member
851
     * @type member
852
     * @signature function()
852
     * @signature function()
853
     */
853
     */
854
    _afterAppear : qx.core.Variant.select("qx.client",
854
    _afterAppear : qx.core.Variant.select( "qx.client", {
855
    {
855
      "mshtml" : function() {
856
      "mshtml" : function()
856
        this.base( arguments );
857
      {
857
        if( !this._firstInputFixApplied && this._inputElement ) {
858
        this.base(arguments);
858
          qx.client.Timer.once( this._ieFirstInputFix, this, 1 );
859
860
        if (!this._firstInputFixApplied && this._inputElement) {
861
          qx.client.Timer.once(this._ieFirstInputFix, this, 1);
862
        }
859
        }
863
        this._centerFieldVertically();
860
        this._centerFieldVertically();
864
      },
861
      },
865
866
      "default" : function() {
862
      "default" : function() {
867
        this.base(arguments);
863
        this.base( arguments );
868
        this._centerFieldVertically();
864
        this._centerFieldVertically();
865
      },
866
      "webkit" : function() {
867
        this.base( arguments );
868
        this._centerFieldVertically();
869
        qx.client.Timer.once( this._webkitAppearFix, this, 1 );
869
      }
870
      }
870
    }),
871
    } ),
872
    
873
    _webkitAppearFix : function() {
874
      if( this._inputElement ) {
875
        this._inputElement.value = this._inputElement.value;
876
      }
877
    },
871
878
872
    _centerFieldVertically : function() {
879
    _centerFieldVertically : function() {
873
      if( this._inputTag === "input" && this._inputElement ) {
880
      if( this._inputTag === "input" && this._inputElement ) {

Return to bug 361051