I am using Durandal's compose binding and I am currently running into an issue caused by the fact that Durandal's compose binding sets the injected view's root element to display:none until the activate's promise is resolved.
The issue is that the injected view has a custom binding that needs to know the initial dimensions of its bound element, but because its parent is display:none the element will always have a width/height of 0 pixels.
The solution is to use visibility:hidden instead of display:none during composition, but I can't find a way to override that behavior using the compose binding. Is there a way to specify this in the binding syntax? If not, would it be possible to create a custom transition to get the desired behavior?