Hi
I am developing a gwt applciaiton and I need some windows with custom edge graphics. I already tested our custom graphics with smartgwt but edge graphics resized instead of backgroung tiling. Using this method We can only use pixel size edges or we had to prepare fixed size edges. I already implemented gwt 9 edge windows structures using css class to tile edge background. I already digged code level and I could not find useful method.
Could you clarify what’s tiling? The corners? Fixed sized corners is what we recommended for the best image quality because browsers have inconsistent scaling algorithms and the result of scaling round media can look very bad. But the Window as a whole can have whatever size you want, because the side pieces (top, left, right, bottom) stretch without a problem.
I dont want to stretch my images, may repeat or croped visible part. I already implented this feature using following css property for div (td also works).
OK.. not sure what you’re missing then. In SmartClient you set the edgeImage property and place a series of images in the same folder, following a naming convention to indicate which image is for which part of the 9-segment edge. Just see the docs.
I already tested what you offer but it streches images and I dont want it. I am asking if there is any existing method to implement such 9 sized windows without strecting, maybe repeated tiling, or croping
It’s not clear how you could get a clean edge join if the image is not stretchable. Maybe if you could post a screenshot of what you want your window to look like..
you are rigtht on free resize its a problem, but my windows size has fixed heigths, so I can calculate exact dimensions, With edge image memthod I can handle this situation with different sized edge images but I have many windows so I want a flexible solution. Here is strech and tiled edge windows screens. I created tiled one manualy
So you seem to care about a variety of sizes of Window, but not the ability to have a truly arbitrary size Window, because that won’t look right?
Well, it’s a pretty rare requirement The best approach might be to have your own simplified “EdgedCanvas” that uses individual Img widgets for each side and corner, since Img widgets can tile.