Re: Variable UI

2010-09-10 Thread pete
Yes, worldofsolitaire.com seems to handle the problems I'm encountering, no ugly wrong layout and no need to refresh. But I couldn't find a clue how this page was created... (doesn't look like GWT, does it? No obfuscated javascript...) I have firebug installed, and the way the cards are handled

Re: Variable UI

2010-09-09 Thread pete
So you're suggesting, I should have every image ready for every possible resolution? It is just that I have a lot of images, it would be really nice to keep all the values in percentage inside of my app and scale whatever I need accordingly. At least I would consider that more elegant, it's a

Re: Variable UI

2010-09-09 Thread pete
Hmm, I guess I was stupid, I should just use a service to dynamically create images of the right size on the server-side and flush them to the client, then I have variable resizing and can use 100% size in the browser, right? (sorry, I'm not too experienced in programming web- apps) -- You

Re: Variable UI

2010-09-09 Thread lineman78
I think you are making thins too complicated. What are you doing with so many images? Browsers can do client-side scaling of images for you if you use the img tag (background image scaling is coming in CSS3). It seems like you are a thick client developer and don't have much experience with web

Re: Variable UI

2010-09-09 Thread pete
This one app is a card game, with approx. some hundred cards when fully designed. So each card has a small image shown in the UI (dragable, if possible 2 rows a 5 small cards independent of the resolution) and on click shows a popup with the full image including card description. Furthermore 5

Re: Variable UI

2010-09-09 Thread lineman78
What you are describing is very similar to worldofsolitaire.com. I suggest that you play around with it for a bit and use firebug to inspect how he does things in html. I believe he is using just one image for each card and letting the browser scale it. This way you only need one image for each

Variable UI

2010-09-08 Thread pete
Hello, I'm a little confused, I tried to create a variable UI, meaning titlebar with shall be adjusted to the browser window size, and various graphics to be scaled, fitting any resolution. (I use stuff like Window.getClientWidth() and image.setWidth(int)) But now, when I first open the page

Re: Variable UI

2010-09-08 Thread lineman78
be avoided at all costs and can cause major performance problems, this is one of the main drawbacks to GXT and SmartGWT IMO. On Sep 8, 10:17 am, pete bobobo...@hotmail.com wrote: Hello, I'm a little confused, I tried to create a variable UI, meaning titlebar with shall be adjusted to the browser