Placeholder refresh

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Placeholder refresh

oetiker
Gurus,

I am using the new Placeholder property in one of my projects.
Since I am re-using widgets, I need to 'clean' them as different
data is displayed.

I do

  textfield.setValue(null);

If the field has already been empty, then it will NOT display the
Placeholder but remain white.

Once I click into the field, the placeholder apears when I leave
it. I found that if I run

 textfield.syncAppearance()

the placeholder appears. I wonder if this should happen
automatically ?

cheers
tobi

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Placeholder refresh

MartinWittemann
Administrator
Hello tobi,

thanks for the hint. It would be nice if that happens automatically. I  
opened a bug report for it:
http://bugzilla.qooxdoo.org/show_bug.cgi?id=2634

Will fix it soon.

Best,
Martin


Am 30.07.2009 um 10:06 schrieb Tobias Oetiker:

> Gurus,
>
> I am using the new Placeholder property in one of my projects.
> Since I am re-using widgets, I need to 'clean' them as different
> data is displayed.
>
> I do
>
>  textfield.setValue(null);
>
> If the field has already been empty, then it will NOT display the
> Placeholder but remain white.
>
> Once I click into the field, the placeholder apears when I leave
> it. I found that if I run
>
> textfield.syncAppearance()
>
> the placeholder appears. I wonder if this should happen
> automatically ?
>
> cheers
> tobi
>
> --
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
> http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel