regardscitoyens/the-law-factory

drop resize stuff

Closed this issue · 6 comments

There are way too many calls of resize function in this app, we should drop that and just let the browser make this for us !
As @njoyard suggest, we can for example just use absolute positioning.

are we speaking only about amendments or everywhere ? :)

Everywhere. Page layout is nearly the same in all modules.

go for it! just beware the probably numberous pieces of d3 that deal with sizes :)

Progress can be followed on my new-stylesheet branch.

Note that in the end only the compiled CSS will be versioned and the branch will be rebased to separate commits into more targeted changes.

@fmassot I guess this is closable now with css-refacto, except if you meant also dropping the resize watches that are used to redraw the svgs?

nope the refacto is just perfect !