开发者

JavaScript / Backbone.js layout manager

I have a number of (Backbone.js) Controllers with a bunch of child elements.

When the browser is resized or the model changes, I'd like child elements of various controllers to be able to affect the layout of other elements.

Let's开发者_运维百科 say for example that I change language in the model and that this results in my headerController => titleTextField growing from 1 to 2 rows. This should cause the container below to shrink to accomodate for the growth.

Somehow, I'd like a layout manager to be able to take this into account and reposition dependent elements accordingly.

Are there such layout managers? Alternatively how would you build one?

(Preferably one that works well with Backbone.js MVC principles)


this sounds like a CSS issue, not a javascript / mvc issue. there are plenty of css frameworks out there, such as 960grid, blueprint, and many many more, that handle this sort of layout change

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜