Couldn't you do the progress bar, however you like, then just query
its (absolute) location after its on the page, putting a label at that
position?
(so effectively the widgets arnt tied together at all)

If you want the progress bar to resized verticaly to match the text
size you could then size it after the label is positioned.

A bit of a fudgy solution, but it would give you a progress bar with
text ontop surely?

On Sep 8, 10:57 am, David Given <[email protected]> wrote:
> Ian Bambury wrote:
>
> [...]
>
> > It might be helpful (well it would for me anyway) if you were to
> > describe the effect you were trying to get.
>
> Simple enough, really: I want a progress bar with text over the top.
>
> > To some extent I think I understand, but I don't understand the reason
> > for the problem for absolute positioning.
>
> Using an AbsolutePanel would require me to pick a pixel size for the
> panel. Unfortunately, space is limited. Given that HTML doesn't do
> queryable font metrics, I cannot manually size the panel to fit the text
> inside. The normal solution here is to just make the panel bigger than
> necessary, but I can't do that for space reasons. The progress bar needs
> to tightly wrap the text.
>
> [...]
>
> > But certainly this time the quick answer is 'out of luck' because the
> > deck panel doesn't do that.
>
> It's an odd omission --- HTML and CSS should be able to produce the
> effect I need using raw DOM. This kind of widget is usually one of the
> primitives in most other widget sets I've seen, so I thought I should
> check before writing my own.
>
> --
> ┌─── dg@cowlark.com ─────http://www.cowlark.com─────
> │
> │ "They laughed at Newton. They laughed at Einstein. Of course, they
> │ also laughed at Bozo the Clown." --- Carl Sagan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to