Is there any non-invasive layout system that takes in account min-size,
max-size?
I've been looking for using a layout system for my websites as using css
is quite limited and is not making easy to contain code in a defined
place. Anyway I don't like to use css for layouting.
The layout should be like the ones in the frameworks as qooxdoo. For
example I would like to be able to set things like this:
var Header = function(){
this.widthPer = 100;
this.heightPx = 363;
// notice the positionX=center!, this will autocalculate the image
position when the view size will change
var image = new Image(url).set({widthPx: 939, heightPx: 363, positionX:
"center"});
this.root.add(image); // root of header view
}
var header = new Header()
var root.add(header);
This is not the complete example, but I will put in more...
No comments:
Post a Comment